Speaker Series Presents: Bernie Rohde


Programming with Arduino is a bit like paint-by-numbers:  you get very nice pictures, pretty much the same as everybody else’s.  For students in a place like Waterloo Region, not to mention artists and designers trying to do original work, there might be, without hacking, not much future in it.  This presentation is for people who are already using the UNO, who want better performance from the devil they know…

Would you abandon writing 50x faster because you’d need to remember which pin is the output ?  What about waiting all day for an A/D conversion, instead of setting a couple of control bits?  No kidding, unless your code needs to be portable to different processors – which typically it wouldn’t – you sacrifice an awful lot of execution speed and predictable timing control, for zero programming advantage.

Instruction hacking will focus on digitalWrite and analogRead – streamlining operations for any particular purpose, telling the cpu directly what to do.  We’ll be looking at an actual piece of techArt – Bernie’s latest invention, CANNED LIGHTNING – and connecting some dots with Arduino documentation.  With little or no further study you’ll be able to adapt Bernie’s code examples for any projects of your own.

If you feel like bringing a laptop, or for future reference, here are a couple of items to download…

http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-42735-8-bit-AVR-Microcontroller-ATmega328-328P_Datasheet.pdf   and https://www.arduino.cc/en/Hacking/PinMapping168

And here’s a schematic of the UNO circuit…


Sunday, June 3, 2:30pm

Share: Pinterest