Currently standing at a sniff under £250, but I need go through and sort out what I bought against what I actually used, and the value of what I already had.
Slave labour, so no costs there
Programmable Sequential Switch
Moderator: Moderators
Re: Programmable Sequential Switch
I'm really interested in getting into Arduino projects.
I'm interested in what development environment people are using, loading the code in to the device etc?
I'm interested in what development environment people are using, loading the code in to the device etc?
Re: Programmable Sequential Switch
There's Arduino/Genuino which is a complete development tool that you can download. You program it in C/C++ and each program has two sections - setup() where you set all the pin functions and initialise everything, and loop() where you run your actual program. To me, it seems extremely simple.
I don't see any more advanced stuff like interrupt handling so it is strictly for simple, non time critical programs.
Our lad also has a copy of UnoArduinoSim which allows him to test his programs on a simulator before loading them onto the real hardware.
- James Perrett
Moderator -
Posts: 14249 Joined: Mon Sep 10, 2001 12:00 am
Location: The wilds of Hampshire
Contact:
JRP Music - Audio Mastering and Restoration. JRP Music Facebook Page
Re: Programmable Sequential Switch
- Drew Stephenson
Jedi Poster -
Posts: 24445 Joined: Sun Jul 05, 2015 12:00 am
Location: York
Contact:
(The forumuser formerly known as Blinddrew)
Ignore the post count, I still have no idea what I'm doing...
https://drewstephenson.bandcamp.com/
Ignore the post count, I still have no idea what I'm doing...
https://drewstephenson.bandcamp.com/
Re: Programmable Sequential Switch
But for £250 you could pay one of your children (or a neighbours child) £1 a time to either plug them in in sequence or unplug them in sequence. That's 125 power-up and power-downs covered.
Reliably fallible.
Re: Programmable Sequential Switch
A lovely piece of work Will.
My late father-in-law - meticulous in doing the hidden things as neatly as possible - would have whole-heartedly approved.
I know it's not a direct comparison between your one-off and off-the shelf units, but yours bears cost comparison with commercially available units that aren't nearly as sophisticated.
My late father-in-law - meticulous in doing the hidden things as neatly as possible - would have whole-heartedly approved.
I know it's not a direct comparison between your one-off and off-the shelf units, but yours bears cost comparison with commercially available units that aren't nearly as sophisticated.
-
- Mike Stranks
Jedi Poster - Posts: 10467 Joined: Fri Jan 03, 2003 12:00 am
Re: Programmable Sequential Switch
James Perrett wrote: ↑Mon Jan 17, 2022 6:54 pm
There's Arduino/Genuino which is a complete development tool that you can download. You program it in C/C++ and each program has two sections - setup() where you set all the pin functions and initialise everything, and loop() where you run your actual program. To me, it seems extremely simple.
I don't see any more advanced stuff like interrupt handling so it is strictly for simple, non time critical programs.
Our lad also has a copy of UnoArduinoSim which allows him to test his programs on a simulator before loading them onto the real hardware.
There are in fact two hardware interrupts available on the UNO (I don't know about any others in the series). I've used them in the past for exactly the purpose of precision timing. The Arduino's crystal is pretty accurate and stable (the smaller resonator ones less so).
- Folderol
Jedi Poster -
Posts: 18057 Joined: Sat Nov 15, 2008 12:00 am
Location: The Mudway Towns, UK
Contact:
Yes. I am that Linux nut {apparently now an 'elderly'}
Onwards and... err... sideways!
Onwards and... err... sideways!
Re: Programmable Sequential Switch
Mike Stranks wrote: ↑Tue Jan 18, 2022 10:01 am A lovely piece of work Will.
My late father-in-law - meticulous in doing the hidden things as neatly as possible - would have whole-heartedly approved.
I know it's not a direct comparison between your one-off and off-the shelf units, but yours bears cost comparison with commercially available units that aren't nearly as sophisticated.
Thanks Mike. It's in service now and I'm very happy with it - no more messing about with a bunch of switches, and zero power use when off.
- Folderol
Jedi Poster -
Posts: 18057 Joined: Sat Nov 15, 2008 12:00 am
Location: The Mudway Towns, UK
Contact:
Yes. I am that Linux nut {apparently now an 'elderly'}
Onwards and... err... sideways!
Onwards and... err... sideways!
Re: Programmable Sequential Switch
Folderol wrote: ↑Tue Jan 18, 2022 11:36 am There are in fact two hardware interrupts available on the UNO (I don't know about any others in the series). I've used them in the past for exactly the purpose of precision timing. The Arduino's crystal is pretty accurate and stable (the smaller resonator ones less so).
Thanks Will - I had missed that in all the Arduino code that I had looked at. I'm more used to programming PIC's where just about all inputs are handled using interrupts.
- James Perrett
Moderator -
Posts: 14249 Joined: Mon Sep 10, 2001 12:00 am
Location: The wilds of Hampshire
Contact:
JRP Music - Audio Mastering and Restoration. JRP Music Facebook Page