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 kB2076
MySGrowPCB_test.ino4.07 kB1569

Bill of Material

QuantityPartValuePackageManufacturerManufacturer P/NMouser P/NCommentAliexpress or Ebay link
1C14.7µF SMD 0805MurataGRM21BR61C475KA88K81-GRM21BR61C475KA8Khttps://www.aliexpress.com/item//32561376020.html
2C2, C30.1µF SMD 0805MurataGRM21R71C104JA01D81-GRM21R71C104JA01Dhttps://www.aliexpress.com/item//32560085454.html
3R1, R2, R356k SMD 0805BournsCR0805-FX5602GLF652-CR0805-FX5602GLFhttps://www.aliexpress.com/item//32570183133.html
2R4, R54.7k SMD 0805BournsCR0805-FX-4701ELF652-CR0805FX-4701ELFhttps://www.aliexpress.com/item//32570155447.html
1P1LED 3.5mm pitchPhoenix Contact1984620651-1984620Optional, direct solderinghttps://www.aliexpress.com/item//32427573697.html
1P2Fan 2.54mm pitchMolex47053-1000538-47053-1000Optional, direct soldering
1P3I2C 2.54mm pitchPhoenix Contact1725672651-1725672Optional, direct solderinghttps://www.aliexpress.com/item//32417814976.html
1P4OneWire 2.54mm pitchPhoenix Contact1725669651-1725669Optional, direct solderinghttps://www.aliexpress.com/item//32417810166.html
1Q1IRLZ44N TO-220International RectifierIRLZ44NPBF942-IRLZ44NPBFReplace N-Mosfet accordingly to LEDs requirementshttps://www.aliexpress.com/item//32330563148.html
1Q2IRLB8721 TO-220International RectifierIRLB8721PBF942-IRLB8721PBFOptional if 4 pin PWM Fan, close JP3https://www.aliexpress.com/item//32559660851.html
1DS1DS18B20 TO-92Maxim IntegratedDS18B20+700-DS18B20+Optionalhttps://www.aliexpress.com/item//32236763433.html
1U112V switching VregTO-220Murata580-7812SR-C580-7812SR-Chttps://www.aliexpress.com/item//32517356484.html
1U23.3V linear VregSOT-223Texas InstrumentsTLV1117-33CDCYR595-TLV1117-33CDCYRhttps://www.aliexpress.com/item//32351569056.html
1U3AT25DF512C SOIC-8Adesto TechnologiesAT25DF512C-SSHN-B988-AT25DF512CSSHN-BOptional, for OTA
1U42x4 pin 2.54mm pitch female headerRequired to use mount screw below NRF24L01https://www.aliexpress.com/item//32402809934.html
1U5ATSHA204A SOT-23AtmelATSHA204A-STUCZ-T566-ATSHA204ASTUCZ-TOptional, for signing
1IC1ArduinoProMini ArduinoPro Mini 3.3Vhttps://www.aliexpress.com/item//32313595044.html
1NRF24L01 Radio moduleNRF24L01+713-113990011https://www.aliexpress.com/item//1569362725.html
22.54mm 12pin female single row pinhttps://www.aliexpress.com/item//32597304567.html
22.54mm 2pin female single row pinhttps://www.aliexpress.com/item//32597304567.html
12.54mm 3pin female single row pinhttps://www.aliexpress.com/item//32597304567.html
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