Arduino Mega 2560
I’ve recently purchased an Arduino Mega 2560 R3 development board.
It’s in some ways more powerful than the Raspberry Pi as it has analogue inputs, more GPIO’s and less overhead – in that it doesn’t run Linux, it doesn’t have an IP stack, it doesn’t have HDMI output etc. Its just a microcontroller and a bunch of pins that you program using C++
I’m actually preferring it to the Pi for electronic interfacing, as “it just works” as they say in Apple land. There’s no messing around with device file permissions, drivers or a rubbish USB subsystem and iffy power supplies – you can use a 9V battery, USB power from a PC or anything that can supply 5V/500mA or more down a barrel connector!
I’ve been loving the analogue and PWN facilities – you don’t need an RC circuit or ADC to read from a LDR or pot like you would on the Pi.
Of course without a network interface you’re limited to standalone projects without either interfacing with a Pi or via serial to a PC or adding a wifi shield, but that’s what a Pi is for.
I’ve ordered the parts to make a standalone Atmega328P based device, essentially an Arduino Uno on a breadboard that no longer needs the PC for power or firmware.
I’ve been using arduino-mk package from Debian which means you can use GNU Makefiles to build your programs rather than the awful Java IDE.
The following code runs eight LED’s like a VU meter, via 3 wires to a 74HC595 shift register. An LDR (or just a pot) controls the speed the LED’s flash at via an analogue input, and the brightness is controlled via PWM.
|
|
I’ve also updated my desktop and netbook to Debian 8 Jessie (Sid actually) with only minor problems.
- OpenSSH client seems to nag about missing keys, solution is to add this to ~/.ssh/config:
|
|