About
In summary, The code is part of an Arduino sketch for multiple ESP32 boards. The ESP32 boards use the ESP-NOW protocol to communicate with each other, and some of the boards are also connected to a user's phone through Bluetooth. The code includes two functions:
The broadcast function sends an ESP-NOW message containing data stored in the myData structure to every device in range. The receiveCallback function is called when an ESP-NOW message is received. It processes the received data, which is stored in the myData structure, and updates the state of the built-in LED. If a device is connected through Bluetooth, it sends a notification to the device by setting the value of a characteristic and sending a notification. In summary, the code facilitates communication between ESP32 boards using the ESP-NOW protocol and allows for the transfer of data and updates to the state of the devices.
In summary, the code manages communication between a mesh network of ESP32 boards using the ESP-NOW protocol, as well as communication between individual ESP32 boards and a user's phone through a 1-to-1 Bluetooth connection. The code includes two functions:
The broadcast function sends data stored in the myData structure to every device in the mesh network that is within range. The receiveCallback function processes incoming ESP-NOW messages and updates the state of the built-in LED. If a device is connected to a user's phone through Bluetooth, it sends a notification to the phone, allowing it to update the state of the mesh network. The code enables the mesh network of ESP32 boards to communicate with each other using the ESP-NOW protocol and allows a user's phone to keep the mesh network updated.
small, 2A 480Mbps small, 2.0 3A 480Mbps small 2A 480Mbps - not good for magsafe unless 15W input
gen2. @ 1000Mbps (10Gbps) (supports 4k), is 2x 3.0 & 20x 2.0 (novideo),
long, usba-usbc -> 3.0 gen2, 100W Fast Charging, not magsafe nor macbook long, usba-usbc -> 3.0 3->2.4A 500Mbps, long, usbc-usba -> 3.0 3A 500Mbps
ip65- water repelent - rated for splash and rainproof. ip67 - sealed silicon sleaves. wont work in thin channels sk6812 is rgbw, ws2812b 30 leds per meter w spottless diffuser and black deep channel
50a @ .05A each 5v LED or .03A 4 12V's
Drive 1000LEDS w 5v 50A == 250watts or 12v 29A = 350watts power supplys
18 AWGauge, 0.75 mm^2, 3 core copper wire
5v inject ever 5m 12v inject every 10m homerun injection - power supply runs wire to each injection point. parallel run - homerun till split and run inside multiple aluminum channels. inject using 22gague solid core and apply at begining and end of each strip 14gauge from 5v 40amp supply
logic level shift 3.3 2 5v to ensure data signal doesnt get corrupted over long distances.
Specification:Connectors:rated voltage: 0-36V;rated current: 0-5A. Extension wire: rated voltage:0-300V;rated current:0-2A
5V power supply @ 20mah/60mah per pixel draw 2.1a - 10w = 100/35 LEDs - (USB2.0) 5a - 25w - 250/83, 8a - 40w - 400/134 10 - 50w - 500/167 15a - 75w - 750/250 20a - 100w - 1000/334 30a - 150w - 1500/500 40a - 200w - 2000/750 50a - 250w - 2500/834 60a - 300w - 3000/1000
If I need the 60 per. thatd be 40amps needed. makes sense that id upgrade the power supply units in such a case. really depends on diffusion so maybe tomorrow i look into all that.
take the measurements of your led lights and also look into that soldering iron of yours.
model U4 is best!
LED strip width: IP30 IP65 :10mm LED strip width : IP67:12mm( include silicone sheathing)
leds should be further away from the diffuser than eachtoher to avoid brightspots. 30Leds/m = 32.9mm 60/m = 16.2 144/m= 6.6
average diffuser heights: 6.5 - 22% drop 13.5 16 - 36% less bright then no diffuser. spotless = 56% reduction
connecting power injection lines from alternate power adapter from original will cause grounding problems.
1018 - 15 - 46 1220 - 19 - 58 1220-3 - 18 - 56 1023 - 19 - 59 1616 - 16 - 55 1616s - 13-60
[1018 (1220s-3)] 1023 1616s 2020s https://ae01.alicdn.com/kf/Hf32caccc1db14c26a816422e69d9a71bz.jpg https://ae01.alicdn.com/kf/H821463ec18f54850b847715c9b71a2a9j.png
27.87 -> BTF-LIGHTING 2 Pack WS2812B ECO RGB Alloy Wires 5050SMD Individual Addressable 8X32 256 Pixel LED Matrix. 37.99 for 2
30x5 -> 150 = 3A/9a
1000? 750? 5-600 leds per nodemcu. all work but fps probs drop
BTF-LIGHTING DC5V Power Adapter 5V10A 50W- $22.99 5V3A 15W - $9.99 5V6A 30W - $15.99 5V8A 40W - $17.99
At full brighness(60mA) (20perRgb), 30Leds/Meter from a 5V uses 1.8 Amps. 5meters is the longest you can buy which would be 9Amps
5v AC to DC Power Adapter Converter/ Transformer
different lights can have different GRB RGB BRG FASTLEDS b/c they can be out of phase w eachother but should connect grounds where possible power supplys should never connect
LED Strip controllers
150leds or less use 2.0 under 300 go w 10amps dc barrel jacks 300 + go w AC DC converter
Sell kits w 30LEDs per meter
- USB 2.0 + 3 light meters (2.1a can drive 35 LED using 60ma)
- USB 3.0 + 5 light meters
- 2x 18650 (3.7v, 25a, 3k mah each)
- Battery Holder, JST 2 DC switch w JSTv2 2 light
- lifepi4 - 2100mah 6.6v
- JST2Light, c=discharge rate
- connecting in serial increases voltage
100w LED strip which runs at 24v and needs 5 meters of cable this requires 4Amps of power. which require a wire of 0.75mm2 to transfer it over those 5 meters. If you however double feed the cable (from both ends) the requirement per cable is only ~2A so thinner cables can be used!
*Power distribution is never 100% equal and itβs good practice making sure both ends can handle the full load, maybe use 2/3rd of the thickness instead of half for instance
start by getting 6 colors offset black to offset white with hue
just the chip designs need to be fcc certified but the modules are ok
802.11 broadcast packets don't need wifi connection to be recieved so long as the reciever is on the channel
RPi constantly tries flashing through pogo pins.
guy on lighting board changing lights sends data to arduino via DMX shield. Arduino was INITIALLY connected to a laptop which would send data over wifi to main server which would send updates out via unicast to each of the badges in the concert hall. The central server would log every espthat connects to it for broadcasting. The Server ran in a container enviornment (a prox box stack). This was later changed LIVE during the event because w 1.3k esp's the channel utilization for the wifi 2.4ghz band range shot up to 86% (dropped packets b/c of all the back and forth comms) before switching to send out raw 802.11 packets (espnow esque) via ESP's. 3 esps on 3 different broadcast channels would do the unicasting after being directly connected to the arduino (Cutting out the laptop and central broadcast server). The dmx broadcasts an array of data corresponding to a lighting command. 20x/s. Can be an array of array [of lighting commands] -> the mac address would get modulod by 3 to sort which esp would be the broadcaster
2 batteries lasted 20 hours so they used sleep to keep it going for weeks (.3ma). every 30 seconds would wake up and look for the network. admin badges existsed. no ota
https://github.com/cnlohr/esp32-c3-playground https://github.com/cnlohr/esp32s2-cookbook/tree/master
https://github.com/AEFeinstein/Super-2023-Swadge-HW https://github.com/AEFeinstein/Super-2023-Swadge-FW https://github.com/cnlohr/Super-2021-Swadge-FW-Sandbox https://github.com/cnlohr/Super-2021-Swadge-HW https://github.com/cnlohr/swadgeguide - 2020 https://github.com/AEFeinstein/Super-2020-Swadge-HW https://github.com/cnlohr/swadge2019 https://github.com/cnlohr/swadges2017
compiled arduion code: go to File -> Preferences and then select Show verbose output during -> compilation. Finally, when you are compiling, the program will show you lots of data. At the last lines, you will find the path1 to the . hex file.
https://www.youtube.com/watch?v=S_p0YV-JlfU https://easyeda.com/editor#id=fbcc60cfb0d247e59f691554a623c02f|e093c929dbea4fbebbdd9a1d95c63ab3|3beaebc196b2425db179dfd6e55c2b23 https://forum.arduino.cc/t/drums-trigger-led-with-a-mic/948511/12
https://learn.sparkfun.com/tutorials/sound-detector-hookup-guide https://learn.sparkfun.com/tutorials/electret-mic-breakout-board-hookup-guide/all https://www.instructables.com/Electret-microphone/ https://learn.sparkfun.com/tutorials/mems-microphone-hookup-guide/all https://all3dp.com/2/3d-printed-shirt-tutorial/
jst connectors are out. not enough current run through em pcb screw terminals run a lot of resistance compared to butt connectors, bogo or soldering
r = 2.2milliohms. pl=2.2r*10a=.22w pcv screw terminals produce a .22w power loss at 10Amps
// 25 microns .025mm // razor blade = 100 microns or .1mm // 1 micron =~ 1k atoms
arm = advanced risc machine. risc = reduced instruction set computing
david braben and ian bell created ARM which was built on RISC. Whereas David Patterson created the original RISC processor
established 1978 Riscv1= 80, Riscv2= 83(16bit), riscv3=84(32bit), riscv4=88 ARMv1 = 85, 32bit, 1watt chip ARMv2 = 87 ARMv3 = appl partnership ARM4=current risc5=start2010, open source, OISA not OSH, 32,64
cortex a - (for phontes-laptops) "32bits is dead as of 2023" cortex m - microcontrollers, offers 32bits - 12k gate processors in size
MEMS - Micro-electromechanical systems and ASIC - Application-specific integrated circuit respectively.