Apr 29

Just taking a moment to geek out. I finished my arduino code for my home HVAC project and decided to give it a burn in test tonight. I have 5 DS18S20 temperature sensors connected via parasitic 1-wire to pin 10 on a boarduino. My code just goes out and does a beacon looking for any 1-wire devices on the network and then queries them. It takes that data, turns it from hex to a Fahrenheit temperature and then prints a colon delimited string with that information out onto the serial port. I had been using just 1 probe, so tonight I decided for giggles to hot add 4 more. I smacked the ICs onto the breadboard while everything was running and what do you know, the code picked the new units up and never skipped a beat! Cool!

Oct 31

The Arduino IDE is a neat little bit of software that doesn’t have a ready made launcher for those of use in the unix world.   It’s easy enough to create though.

  • Right click on your taskbar and select Add to Panel
  • Choose Custom Application Launcher
  • Type should be Application
  • Name should be Whatever you want, I just use ‘Arduino’
  • Command should be

bash -c “cd $HOME/Dropbox/Code/arduino-0012/; ./arduino”

This assumes that the arduino software is in a directory called “Dropbox/Code” in your home directory. If it’s just in your home directory, then the command would look like this

bash -c “cd $HOME/arduino-0012/; ./arduino”

  • Now just pick an icon of your choice and hit OK.
Oct 26

Installing the Arduino IDE on Ubuntu 8.04 is pretty easy, you just need to make sure that you have 3 packages installed.

  • gcc-avr
  • avr-libc
  • sun java

Technically, you should be able to get away with the gcj java runtime, but if you have a bug with the IDE, you’ll be encouraged to install Sun jre right off the bat. So, with that, install the compiler and libraries first.

sudo apt-get install gcc-avr avr-libc

Next, Sun Java

sudo apt-get install sun-java6-jre

And lastly, download the arduino IDE, unzip it and run it. I like to store my code in my dropbox accountto keep things safe and synched between machines.

Next Entries »