I want program a simple micro controller to turn a pump on and off once a month. Has anybody done anything similar and can ebasic be used to write the code to do that?
texaspete
Hmm... like connect something to your PC via USB, or something, and send orders to it via your EB program? I guess I remember seeing something like it somewhere here or in Coding Monkeys foruns. Later I will try to check it, now I need to leave computer.
I am currently using a modified version of one of the Ebasic example programs to communicate successfully with a PICAXE microcontroller. Once a second the PC sends a â€ËÅ"go’ code to the PICAXE which responds by sending temperature data from a thermistor back to the PC. The temperature data is then displayed on a simple scrolling graph. The â€ËÅ"once a second’ is controlled by a simple SETTIMER command. It can be set as low as about 20mS or as high as you like.
See: commexample.eba and commread.eba in the example projects folder.
I could post some code if you like, but it’s 90% Paul’s original example code.