It’s too much trouble to water the flowers when you have nothing to do? Too lazy to water? Just print out the circuit board and write the program. The idea of the program is to obtain the AO or DO value for comparison. If it is low, let the motor pin output a high level. You can set the output time yourself. No technical difficulty. What are the advantages of the board? Cheap and small! If you don't know how to write, just wait until I finish the circuit board before making the program public. I'm currently working on the i project for a remote control car. You can check it out.
sbit motor=P3^2; sbit digital=P3^3; int i; void Delay2000ms() //@24.000MHz { unsigned char i, j, k;
_nop_();
_nop_();
i = 183;
j = 100;
k = 225;
do
{
do
{
while (--k);
} while (--j);
} while (--i);
}
void main(void ) { while(1){
if(digital==1)
{
for (i=0;i
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet