MySGrowLED - MySensors control for Grow Lights or Greenhouse

MySGrowLED

KiCad 3D view

Description

KiCad traces

MySensors module designed for wireless greenhouse automation (nRF24L01, 2.4GHz).

This module allow you to:

  • control a primary LED light (5-40V input can be used to power the module)
  • control a secondary circuit designed for a CPU PWM fan but can be used for a second light, humidifier, relay or anything else using 12V
  • monitor temperature using an optional onboard DS18b20 sensor
  • monitor external temperature by plugging external OneWire sensors
  • monitor any additional parameters using additional I2C modules such as temperature, humidity, light levels, barometric pressure, etc...

Ordering

Gerber files are included, so you can order these PCB at your favorite PCB fab house. For an easy ordering process you can directly order these PCB from DirtyPCB or OSH Park without having to do anything. Components are highly customizable and the default list may not be the best for your specific use, but it will work for most of the cases. Double check that the power supplies, voltage regulators and mosfets are compatible with your project.

Options

This board is designed to be compatible with MySensors but can be used on its own (timer or sensors to control the lights) or another system using 2.4GHz communication if you adapt the arduino code.

ATSHA204 module

For security reason you can add a CryptAuthEE SHA256 chip. This will allow you to sign messages and will secure communications between the node and your gateway (this is not encryption, just signing). If you only control lights, fan, or other non-essential hardware you probably don't need to bother with this chip. Signing can also be done at the software level, without the chip if you decide to add this function later.

Eeprom module

This module is only used to perform OTA updates on the node. If you don't plan to use this feature you can also skip this chip. You will also need to burn a compatible bootloader to your arduino (DualOptiBoot)

Assembly

Once you received your dirty package of PCBs (or any other Fab house) start by inspecting it carefully to look for scratches, dents, or anything that seems wrong. Do not use the board if you have any concerns. DirtyPackage

Markings are a little off, but nothing wrong on this one, good to go! PCB RV

Start by soldering the optional chips, if you plan to use them. Eeprom soldering ATSHA soldering

Then add all other surface mount components. Don't be affraid by their little size, they are actually easy to solder. If you never soldered SMD components before, be sure to look for a few video tutorials first. SMD soldering

Finish by adding the regular through-hole components, starting by the smaller ones. Components and terminals

Plug your arduino module and radio and you are good to go. Arduino and radio

Testing

You can upload MySGrowPCB_test to your arduino to test the setup:

  • It will look for an ATSHA204 and return its serial number if detected.
  • It will look for an eeprom and return its manufacturer ID if detected.
  • It will alternatively switch the LED and Fan circuits ON and OFF for 10 seconds.

Usage examples

This module can be used on the DIY LED light exemple included (PCB compared to breadboard design) PCB vs BreadBoard MySGrowLED

Another possible use to control a germination chamber inside a plastic container (PCB compared to previous protoboard design) PCB vs ProtoBoard SeedBox

Revision history

Version 1.0: Initial release.

Images

Design Files

Source Code

NameSize# Downloads
MySGrowLED.ino13.77 kB2293
MySGrowPCB_test.ino4.07 kB1737

Bill of Material

QuantityPartValuePackageManufacturerManufacturer P/NMouser P/NCommentAliexpress or Ebay link
1C14.7µF SMD 0805MurataGRM21BR61C475KA88K81-GRM21BR61C475KA8KAliExpress: https://www.aliexpress.com/item//32561376020.htm...
2C2, C30.1µF SMD 0805MurataGRM21R71C104JA01D81-GRM21R71C104JA01DAliExpress: https://www.aliexpress.com/item//32560085454.htm...
3R1, R2, R356k SMD 0805BournsCR0805-FX5602GLF652-CR0805-FX5602GLFAliExpress: https://www.aliexpress.com/item//32570183133.htm...
2R4, R54.7k SMD 0805BournsCR0805-FX-4701ELF652-CR0805FX-4701ELFAliExpress: https://www.aliexpress.com/item//32570155447.htm...
1P1LED 3.5mm pitchPhoenix Contact1984620651-1984620Optional, direct solderingAliExpress: https://www.aliexpress.com/item//32427573697.htm...
1P2Fan 2.54mm pitchMolex47053-1000538-47053-1000Optional, direct soldering
1P3I2C 2.54mm pitchPhoenix Contact1725672651-1725672Optional, direct solderingAliExpress: https://www.aliexpress.com/item//32417814976.htm...
1P4OneWire 2.54mm pitchPhoenix Contact1725669651-1725669Optional, direct solderingAliExpress: https://www.aliexpress.com/item//32417810166.htm...
1Q1IRLZ44N TO-220International RectifierIRLZ44NPBF942-IRLZ44NPBFReplace N-Mosfet accordingly to LEDs requirementsAliExpress: https://www.aliexpress.com/item//32330563148.htm...
1Q2IRLB8721 TO-220International RectifierIRLB8721PBF942-IRLB8721PBFOptional if 4 pin PWM Fan, close JP3AliExpress: https://www.aliexpress.com/item//32559660851.htm...
1DS1DS18B20 TO-92Maxim IntegratedDS18B20+700-DS18B20+OptionalAliExpress: https://www.aliexpress.com/item//32236763433.htm...
1U112V switching VregTO-220Murata580-7812SR-C580-7812SR-CAliExpress: 10pcs/L7812CV L7812 TO-220 KA7812 LM7812 TO220 L...
1U23.3V linear VregSOT-223Texas InstrumentsTLV1117-33CDCYR595-TLV1117-33CDCYRAliExpress: https://www.aliexpress.com/item//32351569056.htm...
1U3AT25DF512C SOIC-8Adesto TechnologiesAT25DF512C-SSHN-B988-AT25DF512CSSHN-BOptional, for OTA
1U42x4 pin 2.54mm pitch female headerRequired to use mount screw below NRF24L01AliExpress: https://www.aliexpress.com/item//32402809934.htm...
1U5ATSHA204A SOT-23AtmelATSHA204A-STUCZ-T566-ATSHA204ASTUCZ-TOptional, for signing
1IC1ArduinoProMini ArduinoPro Mini 3.3VAliExpress: https://www.aliexpress.com/item//32313595044.htm...
1NRF24L01 Radio moduleNRF24L01+713-113990011AliExpress: https://www.aliexpress.com/item//1569362725.html
22.54mm 12pin female single row pinAliExpress: https://www.aliexpress.com/item//32597304567.htm...
22.54mm 2pin female single row pinAliExpress: https://www.aliexpress.com/item//32597304567.htm...
12.54mm 3pin female single row pinAliExpress: https://www.aliexpress.com/item//32597304567.htm...
0JP1Short_Vreg PCB traceSolder jumperclose if VCC ≤ 12V
0JP2Short_LM1117-3.3 PCB traceSolder jumperclose if 3.3V regulator is not used
0JP34pin_Fan PCB traceSolder jumperclose if 4 pin PWM CPU fan is used and Q2 not present

Related Content

Comments