Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20688

BASCOM Project Blog : Watering system Contrioller : REPLY

$
0
0
Hello bibibo I am first building the code that provides the interfaces needed to measure and communicate with the real world this I am doing in a block by block way so that others may take these blocks and use them in their own projects. So now I have shown how to get a real time clock working, have a one second tick (or smaller, milliseconds) going with an ISR driven by a timer, how to use it to run a system seconds variable, how to update this system seconds variable from the real time clock, how to create a command line interface with the RS232 port, how to get lots of inputs and outputs with just 4 pins of the AVR. I am now working on analog inputs using a MAX1238 I2C , 12 port , 12 bit ADC. As I have to make a board to mount the 16pin QSOP IC it is taking a bit of time and having never used this device before I have to learn how to talk to it! Once I have all the blocks I need to interact with the real world I will then get to work on the code to run as a watering system this will use the basic blocks already built. However there is no reason it has to be a watering system the basic blocks are generic to any system. A bit long for an answer to your question but trying to explain the way I am building it. As to the time related events I will have an ON time and OFF time for each event so the difference between these is the run time these will be stored in EEPROM and loaded into variables at start up or on change of them, the seconds flag will cause a comparison to be done in the main loop I will have more details later. Regards Paul

Viewing all articles
Browse latest Browse all 20688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>