Posts

Showing posts from November, 2015

Of Bootloaders and Nanos

Image
Restoring a Nano to a default Nano To use a Nano with default bootloader: Select "Arduino Nano" in the Arduino IDE and click "Burn Bootloader" under Tools (I'm using the USBtiny ISP). Alternatively use avrdude: Write ATmegaBOOT_168_atmega328.hex (found in Arduino/hardware/arduino/avr/bootloaders/atmega) with an ISP, i.e. avrdude -p m328p -c usbtiny -e -U flash:w:ATmegaBOOT_168_atmega328.hex Optiboot bootloader with a Nano To use the Optiboot which comes with the Arduino IDE (version 1.6.5) Add this to the boards.txt file in Arduino/hardware/arduino/avr ############################################################## atmega328o.name=[Optiboot] Arduino Duemilanove or Nano w/ ATmega328 atmega328o.upload.tool=avrdude atmega328o.upload.protocol=arduino atmega328o.upload.maximum_size=32256 atmega328o.upload.speed=115200 atmega328o.bootloader.tool=avrdude atmega328o.bootloader.low_fuses=0xff atmega328o.bootloader.high_fuses=0xde atmega328o

Programming Atmega328p chip wirelessly with nRF24L01+ module - Part I

Image
I recently got my hands on a bunch of nRF24L01+ modules.  They're really easy to use and dirt cheap to pick up.  I followed this tutorial , which uses maniacbug's fantastic arduino library.  Although they are fairly ubiquitous as a radio transceiver of choice, I first heard about them on the excellent Julian Ilett's Youtube channel: I'm actually new to Arduino, but have messed about with programming chips and designing electronic devices for a couple of years.  I can see the attraction of Arduino, and I can see it's a great gateway for more fundamental electronics.  I picked up a couple of Arduino nanos (well, cheap Chinese knockoffs - they worked fine, incidentally), plugged them into the radios and installed some transmitting code on one (the joystick TX example in the  tutorial ) and some receiver code on the other - they worked great, out the box first time! Well that was just too easy!  The range was impressive too, at least twenty metres from the bott