In SX Microcontrollers, SX/B Compiler and SX-Key Tool, robotworkshop wrote: I think the approach that John and Bean suggest is probably the best one for your application. To adjust the time you could use a potentiometer connected to the ADC on the SX48 and use that to scale the time. The Interrupts would occur at a fixed internal but you could use a variable (based on the ADC reading) to control how many times through the interrupt handler it would take for each of your virtual time intervals. I'd just build it on one of the $10 SX48 protoboards that Parallax sells. You could also add checks for special "times" within your program and let it control relays, etc which can control events on your layout. The SX48 has lots of I/O and you should have pins and code space to spare. If you like building circuits on a regular solderless breadboard first I do have a version of the SX48 in a nice 40-pin DIP form factor with a serial port and regulator onboard. Good luck with your project! Robert ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=225510#m226256 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)