InaMORAta: Difference between revisions
No edit summary |
No edit summary |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
[[File:PXL 20220916 080028177.jpg|right|thumb|the completed apparatus]] | [[File:PXL 20220916 080028177.jpg|right|thumb|the completed apparatus]] | ||
[[InaMORata_2.0|Updated in 2024]] | |||
Let's fuck hard with some fans using an [[Arduino|Arduino MEGA]] and a [https://heltec.org/project/wifi-lora-32/ Heltec LoRa ESP32 v2]. These will be used with my [[MO-RA3]] to collect realtime data (fan RPMs, temperatures, etc.) and provide realtime control (fan PWM/RPM, RGB signals). We will also need an LM2596 buck converter and six IRLB8721 logic level MOSFETs, a TXB0108 level shifter, and various resistors. | Let's fuck hard with some fans using an [[Arduino|Arduino MEGA]] and a [https://heltec.org/project/wifi-lora-32/ Heltec LoRa ESP32 v2]. These will be used with my [[MO-RA3]] to collect realtime data (fan RPMs, temperatures, etc.) and provide realtime control (fan PWM/RPM, RGB signals). We will also need an LM2596 buck converter and six IRLB8721 logic level MOSFETs, a TXB0108 level shifter, and various resistors. | ||
| Line 23: | Line 25: | ||
==Powering the system== | ==Powering the system== | ||
[[File:12vpwmrgbhub.png|right|thumb|Power enters via SATA to a 12V RGB/PWM hub]] | |||
We need 12V for our fans (Arctic P14 RGBs) and their RGB LEDs. This is accomplished with a SHNITPWR 12V AC adapter, plugged into a barreljack switch. This barreljack switch is then adapted to a 12V-only SATA plug (SATA normally carries 3.3V, 5V, and 12V). The SATA plug enters a 12V PWM+RGB hub. All fans are plugged directly into this hub, one port of which carries through tachometer readings. | We need 12V for our fans (Arctic P14 RGBs) and their RGB LEDs. This is accomplished with a SHNITPWR 12V AC adapter, plugged into a barreljack switch. This barreljack switch is then adapted to a 12V-only SATA plug (SATA normally carries 3.3V, 5V, and 12V). The SATA plug enters a 12V PWM+RGB hub. All fans are plugged directly into this hub, one port of which carries through tachometer readings. | ||
| Line 70: | Line 73: | ||
==Wiring== | ==Wiring== | ||
[[File:Inamorata bb.png|right|thumb|Fritzing diagram]] | |||
The breadboard has 4 vertical channels. We'll use GND at 0 (the leftmost), 5V at 1, and 3.3V at 2. Both MCUs will be tied to channel 0 for ground. The Arduino will supply our 5V, and the Heltec our 3.3V. | |||
===MEGA=== | ===MEGA=== | ||
* 5V | * 5V goes to breadboard channel 1 | ||
* GND goes to breadboard channel 0 | |||
* Pin 2 goes to hub's tach output | * Pin 2 goes to hub's tach output | ||
* Pin 8 goes to hub's PWM input | * Pin 8 goes to hub's PWM input | ||
* Pin 16 goes to level shifter B3 | |||
* Pin 16 goes to | * Pin 17 goes to level shifter B6 | ||
* Pin 17 goes to | |||
* Pins 9, 10, and 11 go to MOSFET controls (dynamic fan RGB) | * Pins 9, 10, and 11 go to MOSFET controls (dynamic fan RGB) | ||
* Pins 7, 6, and 5 go to a second set of MOSFET controls (static reservoir RGB) | * Pins 7, 6, and 5 go to a second set of MOSFET controls (static reservoir RGB) | ||
| Line 85: | Line 89: | ||
===Heltec=== | ===Heltec=== | ||
* Pin | * Pin 37 goes to level shifter A3 | ||
* Pin 17 goes to | * Pin 17 goes to level shifter A6 | ||
* Pin 38 goes to thermistor signal | |||
* 3.3V goes to breadboard channel 2 | |||
* GND goes to breadboard channel 0 | |||
===MOSFETs=== | ===MOSFETs=== | ||
* Gate is connected to appropriate MEGA pin 9, 10, or 11 | * Gate is connected to appropriate MEGA pin 9, 10, or 11 | ||
* Drain is connected to appropriate hub R/G/B pin | * Drain is connected to appropriate hub R/G/B pin | ||
* Source | * Source goes to breadboard channel 0 | ||
===Level shifter=== | |||
* Va goes to breadboard channel 2 | |||
* Vb goes to breadboard channel 1 | |||
* GND goes to breadboard channel 0 | |||
* OE goes to breadboard channel 2 | |||
===Thermistor=== | |||
* Source goes to 10kΩ resistor, goes to breadboard channel 2 | |||
==Protocol== | ==Protocol== | ||
| Line 103: | Line 119: | ||
==Future work== | ==Future work== | ||
* This needs to get cleaned up, obviously. at a bare minimum, wires need be soldered into the Heltec. | * This needs to get cleaned up, obviously. at a bare minimum, wires need be soldered into the Heltec. | ||
* I ought power the Heltec through the 5V pin rather than the USB. In this case, it moves to the LM2596, and the only thing drawing 5V is the CODI6 (for ARGB LEDs). | |||
* I think I can eliminate the MEGA2560 entirely? We only need move the three tachometer inputs and three RGB outputs at this point. Eliminating it would also (probably) eliminate the level shifter. | |||
[[CATEGORY:Projects]] | [[CATEGORY:Projects]] | ||
[[CATEGORY:Hardware]] | [[CATEGORY:Hardware]] | ||