Articles
read more
Arduino LCD Matrix 3x5 Numeric Font Test
Minimal 3x5 numeric font on a LCD Matrix for Arduino Nano.
Articles
Testing a LCD Max7219 Matrix with an Arduino Nano, thank to http://tronixstuff.com/2013/10/11/tutorial-arduino-max7219-led-display-driver-ic/
read more
LED Matrix Arduino Nano
Testing a LCD Max7219 Matrix with an Arduino Nano, thank to http://tronixstuff.com/2013/10/11/tutorial-arduino-max7219-led-display-driver-ic/
#include <LedControl.h>LedControl lc=LedControl(12,11,10,1); // pin 12 is connected to the MAX7219 pin 1 // pin 11 is connected to the CLK pin 13 // pin 10 is connected to LOAD pin 12 // 1 as we are only using 1 MAX7219
void setup(){ lc.shutdown(0,false); lc.setIntensity(0,8); lc.clearDisplay(0); }
Articles
Doodle's Geek Monkey by Alastair Montgomery
read more
Arduino Uno Serial Message Project at Code Bender
Project to send scrolling messages to LCD Shield enabled Arduino Uno at Codebender. Codebender lets you code and program your Arduino from a browser.
Doodle's Geek Monkey by Alastair Montgomery
Articles
read more
Distro Addiction
Via Flickr:
I'm addicted to trying out new distros and different versions of Linux.
Upload from Dropbox March 04, 2014 at 02:52PM
I'm addicted to trying out new distros and different versions of Linux.
Upload from Dropbox March 04, 2014 at 02:52PM
Articles
read more
Installing Ruby Rails on Manjaro Linux
Thought I'd give Rails another go on my newly created Manjaro Linux VM.
After filling in a couple of required packages the above screenshot shows it firing through the Rails install.
To get to this stage I did the following;
Now to dig out that Rails tutorial I was working through.
Update,
Turns out can't start a rails server do it a missing JavaScript Runtime, bit more searching require.
Update2,
Found the answer on the Arch Linux Wiki which worked updated the instructions above.
Doodle's Geek Monkey by Alastair Montgomery
After filling in a couple of required packages the above screenshot shows it firing through the Rails install.
To get to this stage I did the following;
- sudo pacman -S base-devel ruby sqlite3 nodejs
- Added /home/alastair/.gem/ruby/2.1.0/bin to my path in .bashrc
- gem install rails
- gem install execjs
Now to dig out that Rails tutorial I was working through.
Update,
Turns out can't start a rails server do it a missing JavaScript Runtime, bit more searching require.
Update2,
Found the answer on the Arch Linux Wiki which worked updated the instructions above.
- sudo pacman -S nodejs
Doodle's Geek Monkey by Alastair Montgomery
Articles
read more
Manjaro Linux Openbox
Via Flickr:
Based on Arch Linux so seems pretty nippy at the moment in the VM.
Upload from Dropbox February 26, 2014 at 01:46PM
Based on Arch Linux so seems pretty nippy at the moment in the VM.
Upload from Dropbox February 26, 2014 at 01:46PM
Articles
read more
Sabayon 14.01
Via Flickr:
Another day another Linux distro to try.
Giving the Gentoo based Linux a try on a VM.
Another day another Linux distro to try.
Giving the Gentoo based Linux a try on a VM.
Articles
read more
No static external IP on Raspberry Pi
My Internet provider doesn't supply me with a static IP address with my broadband, so my Raspberry Pi external web address can wander if my router or connectigets reset. There are third party sites which will provide you with a static URL which follows your wandering IP address but its fun to do it yourself.
To keep me updated on the current IP I wrote a Ruby script which I run via crontab to check and Tweet me is the IP address changes.
You can clone the script at Github https://github.com/alastairhm/myip it uses a Ruby Twitter API library which can be found at https://github.com/sferik/twitter to do the direct message with the new IP.
Full details about getting your Twitter API keys can be found at https://dev.twitter.com/
Doodle's Geek Monkey by Alastair Montgomery
To keep me updated on the current IP I wrote a Ruby script which I run via crontab to check and Tweet me is the IP address changes.
#!/usr/bin/rubyrequire 'open-uri'require 'twitter'twitDM = "twitter_username"remote_ip = open('http://whatismyip.akamai.com').readold_ip = File.open('remote_ip.txt', 'r').readif (remote_ip != old_ip) thenFile.open('remote_ip.txt', "w") { |file| file.write(remote_ip)}client = Twitter::REST::Client.new do |config|config.consumer_key = "xxxx"config.consumer_secret = "xxxx"config.access_token = "xxxx"config.access_token_secret = "xxxx"endclient.update("D #{twitDM} My IP address is now #{remote_ip}")elseputs "IP addresses match"end
You can clone the script at Github https://github.com/alastairhm/myip it uses a Ruby Twitter API library which can be found at https://github.com/sferik/twitter to do the direct message with the new IP.
Full details about getting your Twitter API keys can be found at https://dev.twitter.com/
Doodle's Geek Monkey by Alastair Montgomery































