Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
All Spices have a bit of a learning curve. Good news is that LTSpice is free, and there are a few folks on this Forum that are fairly facile with it...
Yep I was starting to think that way too! I've never used microcontrollers before, and have none of the hardware, so I'll need to decide whether to go down the PIC or AVR route, whether to build a programmer or buy one, etc. But it would give me far more flexibility and I have a background in software engineering so this bit shouldn't be too much of an issue.
I imagine I have a long journey ahead!
I was drawn to pure PIC chips because of the in-circuit debugging, which I thought would be very useful on sensing projects, but I can live without this if the programming end is easier.
If you speak BASIC this will be a piece of cake.Hardware help is available. You can insert a debug line in the code and watch a variable as the program runs on the chip.
You think Mike and I have given you enough to do.
Ken
'Picaxe....08M Push-ON/Push-OFF/Program-OFF Power Switch
'Use with 08M Power Switch 05a circuit
'Checking for terminate call with an Interrupt
Start:
High 1 'Turn on power
Low 2 'Turn off output
Pause 100 'Debounce
If pin3 = 1 then Start 'Check if Push Button is still down
setint %00001000,%00001000 'Set interrupt for pretime terminate
Time: '0-60sec
ReadADC 4,b0 'Get timer variable
High 2 'Turn on output
for b1 = 1 to b0 '1 to 256 loops
pause 241
next b1
goto Terminate
Interrupt:
goto Terminate
Terminate:
Low 2 'Pin 2 low to kill output
Low 1 'Pin 1 low to kill power
stop
I couldn't help it...I had to try it.
Yup! Page 202: https://www.rev-ed.co.uk/docs/picaxe_manual2.pdf...What does the binary in the setint command mean? Is it telling the chip in which pin at which state to fire the interrupt routine?