他们逼我做卧底

It has been proven successful: an ultra-low-low-low-cost mini flower watering system. STC15W104

 
Overview

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.

include "stc15.h"

include "intrins.h"

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
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-19 19:09:05

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号