User Tools

Site Tools


hardware:home

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hardware:home [2021/04/12 04:45]
nanodano
hardware:home [2022/03/14 18:45] (current)
nanodano
Line 3: Line 3:
 ====== Hardware ====== ====== Hardware ======
  
-===== Arduino ===== +===== Microcontrollers =====
- +
-Arduino and compatible boards and chips. Some also support MicroPython, CircuitPython, Lua, and other.+
  
 For details on programming Arduino compatible boards, see [[programming:arduino:arduino_programming|Arduino Programming]]. For details on programming Arduino compatible boards, see [[programming:arduino:arduino_programming|Arduino Programming]].
Line 30: Line 28:
   * [[:hardware:arduino::samd51|SAMD51]]   * [[:hardware:arduino::samd51|SAMD51]]
  
-===== Raspberry Pi =====+===== Single-board computers ===== 
 +==== Raspberry Pi ====
  
 See the dedicated page, [[hardware:raspberry_pi|Raspberry Pi]]. See the dedicated page, [[hardware:raspberry_pi|Raspberry Pi]].
  
-===== Sensors and Components =====+===== Components ===== 
 + 
 +==== LED strip/matrix ==== 
 + 
 +For example, this 64x8 RGB LED matrix from Amazon: [[https://www.amazon.com/gp/product/B088BTXHRG/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&th=1|BTF-LIGHTING WS2812B ECO RGB Alloy Wires 5050SMD Individual Addressable 8X32 256 Pixels LED Matrix Flexible FPCB Full Color Works with K-1000C,SP107E,etc Controllers Image Video Text Display DC5V]]. 
 + 
 +The `WS2811` and `WS2812` are common in various LED strips. There are multiple libraries that allow you to control each LED. 
 + 
 +  * [[https://github.com/adafruit/Adafruit_NeoPixel|Adafruit NeoPixel]] 
 +  *  [[https://github.com/FastLED/FastLED|FastLED]] 
 + 
 +Each LED consumes about 20ma per color, so 60mA at full brightness. For a 256 pixel strip, that is 15,360mA. 
 + 
 +Here is another tutorial on using WS2812 LEDs: [[https://howtomechatronics.com/tutorials/arduino/how-to-control-ws2812b-individually-addressable-leds-using-arduino/]] 
 + 
 +==== Power relay switch ==== 
 + 
 +These power relays let you switch high voltage power (110V AC/250V AC) using low power logic (5V). This lets you control household appliances. 
 + 
 +  * [[https://www.amazon.com/HiLetgo-Channel-optocoupler-Support-Trigger/dp/B00LW15A4W|HiLetgo relay on Amazon]] 
 +  * [[http://www.hiletgo.com/ProductDetail/1958599.html|HiLetgo product page]] 
 +  * [[https://www.amazon.com/Valefod-1-Channel-Optocoupler-Isolation-Trigger/dp/B07WQH63FB|Valefod relay on Amazon]] 
 + 
 +Wiring diagram: [[https://www.circuitbasics.com/setting-up-a-5v-relay-on-the-arduino/]] 
 +There are two sides, one side with the big relay box itself and the other side. The side with the relay is where the hot power from the wall goes. The live power line goes into the middle one, the common pin, COM or C. The two on the sides should be labeled NO and NC for normally open and normally closed. Pick the one you want to use (depends what default state you want: on or off). Let's say you picked normally open (NO). Then wire from the NO connector to your actual appliance that you want to power. The ground wire from the wall plug should go directly to the ground connector on your device. The other pin will remain unconnected (NC in this case). 
 + 
 +NOTE: If you are cutting an extension cord, the only wire you need to snip is the live power wire. The ground/neutral can stay connected all the way, uninterrupted. All we are doing is inserting the switch in the hot power line. (Green = Ground; White = Neutral; Black = LIVE HOT WIRE) 
 + 
 +On the other side, opposite from the relay box, there are three connectors. Those all connect to the microcontroller: 5V, GROUND, and the input signal to toggle the relay. DC+/VCC is the 5V (or potentially 3.3V on some models too). DC-/GND is the GROUND. IN is the input signal (high or low, depending.) 
 + 
 +You can switch the jumper on the board to switch whether it's toggled by low or high signal. 
  
 ==== Waveshare SIM7600A-H 4G Hat for  Raspberry Pi Hat ==== ==== Waveshare SIM7600A-H 4G Hat for  Raspberry Pi Hat ====
Line 67: Line 97:
  
  
-===== Laptops =====+===== x86 PC & Laptop ===== 
 + 
  
 ==== Thinkpad X60 ==== ==== Thinkpad X60 ====
hardware/home.1618202740.txt.gz · Last modified: 2021/04/12 04:45 by nanodano