Hello everybody,
First of all thank you again for everything you do this forum is really great and it is full of absolutely great information to help noobs like me in the field of microcontrollers.
I'm trying to realize, as much as I could see, an automated system for "paludarium" exactly (basically a mix between an aquarium, and a terrarium, ... basically)
Here is my material:
- Arduino Mega2560 with Wifi ESP8266 integrated (https://aliexpress.com/item/32950536539.html)
- On it a shield sensor shield to find my way around more easily (For Arduino MEGA Sensor Shield V1.0 V2.0 Dedicated Expansion Development Board MEGA 2560 Sup IIC Bluetooth SD Robot Parts DIY|development board|parts forparts robot - AliExpress)
moreover I have several sensors: - AM2301 or DHT21 to capture temperature and humidity (Dht11 Dht22 Am2302b Am2301 Am2320 Digital Temperature And Humidity Sensor Am2302 Temperature And Humidity Sensor For Arduino - Sensors - AliExpress)
- waterproof thermistor W1209 (Page Not Found - Aliexpress.com)
- A soil moisture sensor (Smart Electronics Soil Moisture Hygrometer Detection Humidity Sensor Module For arduino Development Board DIY Robot Smart Car|humidity sensor module|sensor modulehumidity sensor - AliExpress)
- A water level sensor T1592 P (Smart Electronics Rain Water Level Sensor Module Detection Liquid Surface Depth Height For T1592 P For Diy Kit - Integrated Circuits - AliExpress)
Other modules :
- An 8-channel relay low level 5V (https://aliexpress.com/item/32902866969.html)
which will supply 3 fan outputs (1 large of 20W, 1 medium of 3 W and 4 small of 1 W), 3 pump outputs (1 for a waterfall, 1 for rain nozzles and 1 for misting nozzles) , 1 outlet for heating and 1 outlet for 3 atomizers to make a fog. - A DS1302 real time clock module to manage the on / off of all this stuff (Hot Sale Smart Electronics Ds1302 Real Time Clock Modulewith Cr2032 For Arduino Uno Mega Development Board Diy Starter Kit - Integrated Circuits - AliExpress)
- An MC38 electronic switch to cut it all if you open the doors (MC 38 MC38 Wired Door Window Sensor 30mm Wire Lengthen Randomly Magnetic Switch Home Alarm System for arduino|Integrated Circuits| - AliExpress)
I am going to play sounds which can of course be lowered (sounds of night, day, rain, mist, thunderstorm, etc.) :
- SD SPI storage card to put sounds (https://aliexpress.com/item/32519307653.html)
- A small amplifier Type TPA3116 D2 2x50W and 2 small speakers to play sounds (Tpa3116 D2 50w X 2 High Power Digital Audio Music Amplifier Board Stereo Amplifier Speaker Amplifiers Board - Integrated Circuits - AliExpress)
All this will be powered from the mains or by two 12 V 30 A power supplies (therefore 2 x 360 W) (12v Power Supply 1a 2.1a 3a 5a 10a 15a 20a 30a 40a 50a 60a Transformer Lighting Switching Driver Adapter For Led Strip Light - Lighting Transformers - AliExpress)
On the light side I have:
- 1 x Strip light 5 m LED 12V Cold White 120 LED / M 5054 SMD IP67 (https://fr.aliexpress.com/item/32910210831.html)
- 1 x Strip light 5 m LED 12V Warm White 120 LED / M 5054 SMD IP67 (https://fr.aliexpress.com/item/32910210831.html)
- 1 x 5 m LED strip light 12 V special hydroponics 3 red LEDs for 1 blue 60 LED / M 5050 SMD IP67 (Phytolamp Plants Full Spectrum | Led Plant Lamp Full Spectrum | Plant Led Grow Light - Growing Lamps - Aliexpress)
- 1 x Strip light 3 m LED 12 V ultraviolet light (5050 Smd 60leds/m 395-405nm Uv Led Strip Light Ultraviolet Ray Led Diode Ribbon Flexible Tape Lamp For Dj Fluorescence 1m 2m 5m - Led Strip - AliExpress)
All this in order to make a harmonious mixture (to be decided later) for the top lights) and to vary according to the time, sunrise and sunset, rainy, lightning, etc.
Then:
- 2 x 5 m LED strip light 12V RGB addressable 60LED / M 5050 SMD IP67 (WS2811 led Pixel strip Light 30/60 leds/m ws2811 ic 5050 RGB LED Tape DC12V White/Black PCB Addressable Digital 50cm 1m 3m 5m|LED Strips| - AliExpress)
To make 2 panels for the back and the bottom to make animations.
At the back by passing through a frosted filter to avoid seeing the pixels and make sunrise and sunset animations, cloud, blue sky, starry sky, etc.
Below to make a night animation through the pebbles of the quartz background and reveal the water movements
And finally all to manage on a 3.2 inch 320 x 240 touchscreen tft LCD SPI screen with IC ILI9341 with the possibility of connecting an SD card behind the screen for all that is images.
(Page Not Found - Aliexpress.com)
The objective:
With all that my goal is, you will understand, to make a fully automated system with pumps, ventilation, lighting, light, music, humidification, etc.
All controlled by an arduino and with variable data (T °, hum air, hum soil etc.) transcribed on a screen, and the possibility of changing the variables in a parameter mode.
Then later, why not, communicate with a small portable wifi application to vary the parameters and see changes over time.
All starting from nothing, I am not really an IT professional and coding in C ++ even simplified like that of arduino is not necessarily my favorite field.
But it's okay, that's the goal, to learn. If it should take me 2 years it's not a big deal, I am rather obstinate and used to big projects.
For now, I have tried all the sensors, that's good, I have prepared the power supply with switches, I have also prepared the ultrasonic foggers by shorting the buttons and installing them on the power supply 12V and finally I connected the screen with voltage divider bridges because the power supply is 5 V but the pin arches me in 3.3V.
For the lights we will see after that seems to me a huge job and I think I'll save it for the end with flashled or neoled I don't know yet.
My problem mainly concerns the display or more precisely the user interface. I have a 3.2 "and 320x240 ili9341 screen with the following pins:
SDO(MISO), LED, SCK, SDI(MOSI), DC, RESET, CS, GND, VCC,
My concern comes from the fact that I can't find a library except from the basic graphics of the adafruit gfx library which I still find very limited.
With my screen the utft library does not work, only the adafruit works and it fits me well and the tests work well but as soon as I look for other additional library for an ili9341 to create something with more style I systematically fall on bookstores requesting pin such as:
DB1, DB2, DB3... ou RD, WD RS ou CLK.
Is there any solution or do I have to take another type of screen to succeed in having a nice clean and usable interface?
I only have 9 connection pins + 5 for the touch and 4 for the sd. some ili9341 have 40 !!! How is it possible ?
Finally, would it be worth leaning more towards a raspberry pi to create this kind of achievement?
Thank you again for all that your forum offers
Nico