

I will leave the full list of components for the project in the description under the video. Also need a resistor of 100 Ohms and 10 kilo Ohm. So that we will use the mosfet transistor as in the video about the electronic weather forecaster. The sensor can be turned on and off directly by an Arduino.īut the servo in the standby mode consumes a lot of energy. Now Arduino at sleep mode needs literally a couple of dozen micro amps. Next there is a voltage regulator on the back of the board, we don't need it too, bite off its left pin. To make the Arduino eat less from battery, you need to turn off the "pwr" LED, which glows constantly when there is power on the board. So, we have 3 energy consumers, the Arduino itself, the sensor and the servo drive. So, it works! Let's talk about energy saving. You can start from here with functional programming. Create the long sheet of the code is the next step of the Arduino fans. In xod, we clearly see what data is transmitted, from where it is transmitted and where it comes. It's a task for a couple of evenings of reading the documentation.


We just had to think out the logic of the work correctly and know which nodes exist in the program. You can download XOD trash bin project in project page on GitHub.Īs you have already noticed, to create this device we didn't need knowledge of any programming languages. Also first photo is a simple XOD program without some "hysteresis", and third photo is with it. You can watch all process of making whis project in XOD in my video about trash bin. A node is a block that represents either some physical device like a sensor, motor, or relay, or some operation such as addition, comparison, or text concatenation. I use visual-based programming langulage XOD, it is based on nodes.
