IonicWind Software

IWBasic => General Questions => Topic started by: TexasPete on June 17, 2008, 10:51:42 AM

Title: micro control
Post by: TexasPete on June 17, 2008, 10:51:42 AM
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
Title: Re: micro control
Post by: JoaoAfonso on June 17, 2008, 10:55:41 AM
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.
Title: Re: micro control
Post by: Boris on June 18, 2008, 02:16:01 AM
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.