October 30, 2025, 10:48:08 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


micro control

Started by TexasPete, June 17, 2008, 10:51:42 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TexasPete

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

JoaoAfonso

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.
JoÃÆ'ƒÂÃ,£o Afonso
Viriato
-----------------
Iberia MUD
www.iberiamud.com
iberiamud.com:5900

Boris

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.
Thank you for not breeding