SMAC16 a way to build your own WiFi controller

bbasil2012

New Member
View Badges
Joined
Feb 7, 2019
Messages
7
Reaction score
13
Location
Moscow
What state or country do you live in
Other International
Rating - 0%
0   0   0
Hello friends.
I want to talk about my software for ESP32 based microcontroller.
https://github.com/bbasil2012/SSLAC-ESP32

Main functionality
16 channels PWM control: depth 4095 steps, frequency up to 19500 Hz, RTC DSDS3231, temperature sensor DS18b20.

1. Light control
1.1 Each channel has 16 independent time points. For each time point, its own dimming value can be set.
1.2 Channels can be grouped into groups. For example: a group for a display tank, a sump tank group, a frag tank group.
1.3 Emergency light. The channel dimming values can be individually set when this mode is activated. Activation when you press the flash button on the controller. (It is convenient to use when it is necessary to turn on the light urgently at night, in order to catch someone in the aquarium)
1.4 Temperature failure. When using temperature sensors ds18b20 (max 16 pcs.), It is possible to assign a channel group (1.2) to the limiting temperature. If it is exceeded, dimming values will be automatically reduced in the channels.
2. Control the cooling fans.
Each temperature sensor can also be used (in conjunction with 1.4) to control the fan speed.
3. Timers.
Each timer can have 24 switching points per day; for each point, the duration of the on state is set with an accuracy of 1 sec.
4. Dosing
When specifying the performance of the dosing pumps (max 16), the amount of the dosing substance and the amount of dosing per day, together with 3, automatic recalculation into values for the selected timer is carried out.

Each channel can perform any of these 4 functions.

Additionally.
Multiple controllers can be combined into a "swarm". In this case, the controllers can synchronize with each other and work as a unit.

To be continued...
 
Hello friends.
I want to talk about my software for ESP32 based microcontroller.
https://github.com/bbasil2012/SSLAC-ESP32

Main functionality
16 channels PWM control: depth 4095 steps, frequency up to 19500 Hz, RTC DSDS3231, temperature sensor DS18b20.

1. Light control
1.1 Each channel has 16 independent time points. For each time point, its own dimming value can be set.
1.2 Channels can be grouped into groups. For example: a group for a display tank, a sump tank group, a frag tank group.
1.3 Emergency light. The channel dimming values can be individually set when this mode is activated. Activation when you press the flash button on the controller. (It is convenient to use when it is necessary to turn on the light urgently at night, in order to catch someone in the aquarium)
1.4 Temperature failure. When using temperature sensors ds18b20 (max 16 pcs.), It is possible to assign a channel group (1.2) to the limiting temperature. If it is exceeded, dimming values will be automatically reduced in the channels.
2. Control the cooling fans.
Each temperature sensor can also be used (in conjunction with 1.4) to control the fan speed.
3. Timers.
Each timer can have 24 switching points per day; for each point, the duration of the on state is set with an accuracy of 1 sec.
4. Dosing
When specifying the performance of the dosing pumps (max 16), the amount of the dosing substance and the amount of dosing per day, together with 3, automatic recalculation into values for the selected timer is carried out.

Each channel can perform any of these 4 functions.

Additionally.
Multiple controllers can be combined into a "swarm". In this case, the controllers can synchronize with each other and work as a unit.

To be continued...

Welcome to Reef2Reef (R2R)!

Sounds like an intersting controller. Are you familiar with reef pi at all? It's a controller to do all of the functions of your controller plus some other functions. The main developer of reef pi is a R2R member @Ranjib .

Below is a link to the main reef pi thread on R2R. Additionally, there are many individual threads of people who have built controllers. You can find these by running a search for reef pi in the DIY section of the forums.

https://www.reef2reef.com/threads/r...tank-controller-based-on-raspberry-pi.289256/
 
Welcome to Reef2Reef (R2R)!

Sounds like an intersting controller. Are you familiar with reef pi at all?

Yes, I know about this project. And about many others.:)
I think that the more different projects there will be, the more people will be able to choose the most suitable solution for them.
 
Using this project and plan on rolling it out to some other of my tanks. Really simple cheap build. perfect for someone who just needs to control some LEDs on the cheap.

its literally only 2 things needed to run LDD drivers a ESP32 board + a RTC. once I figured out how to get the drivers to let me flash it on my laptop I built the controller in about 15min for a simple 1 driver light.
 
thank you very much for sharing this code. I have tried installing it following the instructions but it didn't work. does this require Windows 64bit
 
This project will be based on the famous TLC5940?
 
what I would like to see is sample wireing diagrams for each mode you can use the 16 pins for. like what would be the best way to wire up a fan to be controlled by the controller?
 
what I would like to see is sample wireing diagrams for each mode you can use the 16 pins for. like what would be the best way to wire up a fan to be controlled by the controller?
This must always be through a mosfet (IRFZ44N)
 
I recommend using current-limiting resistors of 300 ohms per channel for safety reasons.
Connection diagram for cooling fan:
This scheme is no trivial in order to ensure the operation of the cooling fan in the event that the controller fails.

fan.jpg
 
thank you very much for sharing this code. I have tried installing it following the instructions but it didn't work. does this require Windows 64bit
What exactly was the problem?
 
Very nice. ESP32 is a really handy IC. Im glad you took a stab at this. Welcome to reef2reef and thank you so much for making the code publicly available, I'll make sure to check it out
 
Hello friends.
I want to talk about my software for ESP32 based microcontroller.
https://github.com/bbasil2012/SSLAC-ESP32

Main functionality
16 channels PWM control: depth 4095 steps, frequency up to 19500 Hz, RTC DSDS3231, temperature sensor DS18b20.

1. Light control
1.1 Each channel has 16 independent time points. For each time point, its own dimming value can be set.
1.2 Channels can be grouped into groups. For example: a group for a display tank, a sump tank group, a frag tank group.
1.3 Emergency light. The channel dimming values can be individually set when this mode is activated. Activation when you press the flash button on the controller. (It is convenient to use when it is necessary to turn on the light urgently at night, in order to catch someone in the aquarium)
1.4 Temperature failure. When using temperature sensors ds18b20 (max 16 pcs.), It is possible to assign a channel group (1.2) to the limiting temperature. If it is exceeded, dimming values will be automatically reduced in the channels.
2. Control the cooling fans.
Each temperature sensor can also be used (in conjunction with 1.4) to control the fan speed.
3. Timers.
Each timer can have 24 switching points per day; for each point, the duration of the on state is set with an accuracy of 1 sec.
4. Dosing
When specifying the performance of the dosing pumps (max 16), the amount of the dosing substance and the amount of dosing per day, together with 3, automatic recalculation into values for the selected timer is carried out.

Each channel can perform any of these 4 functions.

Additionally.
Multiple controllers can be combined into a "swarm". In this case, the controllers can synchronize with each other and work as a unit.

To be continued...
Welcome comrade
 
I recommend using current-limiting resistors of 300 ohms per channel for safety reasons.
Connection diagram for cooling fan:
This scheme is no trivial in order to ensure the operation of the cooling fan in the event that the controller fails.

fan.jpg
I'm attempting to build one of these with an 4 channel 8up LDD driver board, integrated RTC and hopefully the above fan control circuit to power 4 fans, this is where I'm at now, I'll probably have to redraw it as I've made many changes and the schematic is now incomplete.

I'm trying to keep the board at 100 x 100 mm, right now it 100 x 102 mm, I believe that may increase the cost of fabrication.
 

Attachments

  • Untitled.png
    Untitled.png
    264.3 KB · Views: 63

IF YOU HAD TO TAKE A REEFING EXAM, WOULD YOU PASS?

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%
Back
Top