Category Archives: arduino clone

Haceduino Nano for Christmas :)

A few days ago I got my latest parcel from Hace electronics an order I had made for Christmas. Inside were three HACEduino Nano’s with an ATmega328 on them, I carefully unpacked the package and got a bit of a surprise, Adrian had upgraded my breadboards as he had said he would, but the boards I got were much bigger then I had expected.

As well as the nano’s and breadboards there were three complimentary USB cables to program the Haceduino Nanos’s and three protoshields (Ver B) to build a project on to. I have wrapped them all up and placed them under the tree, I did solder one of the protoshields together so the kids can copy it on Christmas day.

I did have a look at one idea I have had about using the protoshield as a mounting board to prototype for the HACEduino nano, so far it looks like the concept is sound now I just have to play with it on christmas day and then I will blog about it and will also have some photos for you.

Have a great festive season.

Specifications for the HACEduino 2009 (Arduino Duemilanove clone)

The HACEduino “2009/328” is a powerful development board based on the ATMEL ATmega328P-PU AVR micro controller, and is still FULLY compatible with the Arduino Duemilanove and its shields, so basically it is an Arduino clone

.

When you purchase a HACEduino “2009/328” you will get a board with a small micro controller, this is a whole computer on a small chip, in this case it is an ATMEL AVR ATMega328P-PU.

The HACEduino’s design is quite simple, and its design was intended so as the micro controller could easily communicate with a variety of devices, and could be programmed with your computer with a simple design IDE or Integrated Design Environment without the need for sophisticated hardware to program it. In fact, the software, your HACEduino and a handful of components are all that you need to get started.

A standard HACEduino “2009/328” features 14 Digital I/O pins, These can be inputs or outputs, which is specified by the program, known as a sketch which you create in the IDE. The HACEduino also has 6 Analogue In pins, These dedicated analogue input pins take analogue values (0-5v), for example voltage readings from a sensor and convert them into a number between 0 and 1023.

There are also 6 PWM (pulse width modulation) Output pins, These are six of the digital pins that can be reprogrammed for PWM output using the sketch you create in the IDE, the PWM output allows you to create pseudo analogue output voltages(0-5v)

The HACEduino can be powered from your computer’s USB port, a USB charger, or an AC adapter. If using an AC adaptor then a 9 volt one is recommended, it will need to have a 2.1mm barrel tip, centre positive to use the powers socket although you can also connect to the Vin pin on the HACEduino.

If there is no power supply plugged into the power socket or the Vin pin then the power will come from the USB socket, however as soon as you plug a power supply in to the HACEduino it will automatically switch over and use it.

When operating the board with an input voltage between 12V and 14V excessive heat generated by the voltage regulator may damge it. Damage caused by this is not covered by the warranty you get on the HACEduino.

The HACEduino with the ATmega328 micro controller is the perfect entry point to learning to program a micro controller and develop using the Arduino development framework.

The HACEduino “2009/328” has the following features:

Micro controller ATmega328
Operating Voltage 5V
Input Voltage (recommended 9 volts) 7-14V
Digital I/O Pins 14 (of which 6 provide PWM output)
Analogue Input Pins 6
DC Current per I/O Pin 40 mA
DC Current for 3.3V Pin 50 mA
Flash Memory 32 KB (ATmega328) 2 KB used by boot loader
SRAM 2 KB (ATmega328)
EEPROM 1 KB (ATmega328)
Clock Speed 16MHz

Creating A Linux Arduino Development Enviroment

I started playing with my haceduino 2009 and couldn’t get it to upload sketches to my board, I played for a while trying to hit the reset switch at different times but with no luck.

I hooked the board up to a windows machine and had it uploading almost right away so this led me to my Linux machine being at fault. What to do, what to do….

So last night I played with a few different Linux distros to find one that works “right out of the box” so to speak. It had to be a mainstream distro, had to be a clean install and only need packages available from the repos so as not to have to revert to compiling from source.

This guide is to set up a machine from scratch with the latest Ubuntu release 9.10, it should work with kubuntu and xubuntu as well but I offer no warranty as to the sutablity of this guide to your own hardware and setup

INSTALLING ARDUINO IDE FOR THE HACEDUINO 2009 ATmega328 UNDER UBUNTU KARMIC KOALA

Do a fresh install of Ubuntu Karmic Koala 9.10

At the command line perform the following commands to prepare your system for the arduino IDE.
  • sudo apt-get update (Update Package list)
  • sudo apt-get upgrade (Upgrade all installed packages)
  • sudo apt-get remove brltty (Remove as it conflicts when uploading sketches)
  • sudo apt-get install sun-java6-jre avrdude gcc-avr avr-libc ftdi-eeprom (Install dependencies for the Arduino IDE)

Now that the system is ready we will install the Arduino IDE, follow the next set of commands to install the latest IDE from arduino.cc via google code

  • cd ~/ (change to your home directory)
  • wget http://arduino.googlecode.com/files/arduino-0017.tgz (Download IDE from googlecode)
  • tar xzvf arduino-0017.tgz (extract files from the archive)
  • sudo reboot (reboots the machine)

Okay with that all done and your machine rebooted you should be ready to hook up your Haceduino and upload a sketch

  • Plug your Haceduino in to a USB port and wait 10 seconds for it to connect
  • To run the IDE you need to exucute the file ~/arduino-0017/arduino this will launch the IDE
  • Go to tools/board/arduino and select Duemilanove or Nano w/ ATmega328
  • Go to tools/serial port/devttyUSBx (Select the port your board is plugged in to)
  • Load a sketch from the examples choices, the file/digital/blink is a good start to make sure it is working as it doesnt require any additional hardware apart from the haceduino and a USB cable
  • Click on the upload button second icon from the right at the top of the IDE and the sketch should compile and be uploaded to the Haceduino 2009, the red and green serial traffic LEDs should flash for a few seconds
  • You should now have an orange LED blinking on the haceduino that is different to the dit dit dah flash that was all ready on the haceduino.
  • By playing with the values in the sketch you should be able to make it blink faster or slower, why don’t you have a try now.

Well all going well that should be it and you will have a Linux environment that you can program your Haceduino in, congratulations and happy hacking

Waiting on my first HACEduino

I just brought an HACEduino it is a arduino compatible on ebay, It was only AUD 31.50 and that included free postage. I found some code to make it talk to a nokia S60 phone running python (my N97 has python installed)

I am thinking of setting it up to start the motorbike remotely that would be cool