tag:blogger.com,1999:blog-56292797207327871892024-02-19T08:16:59.358+00:00raspberry pi blog by MyPiFiMy geocaching and raspberry pi blogAnonymoushttp://www.blogger.com/profile/01619753419899991396noreply@blogger.comBlogger311125tag:blogger.com,1999:blog-5629279720732787189.post-17141611287568292832018-07-27T11:59:00.001+01:002018-07-27T11:59:04.426+01:00Amazon Dash Button Cheerlight ControllerI needed a way to control the cheerlights that could be useful for friends who didnt have or understand twitter. Whilst to most of us sending the colour or a sentence with a colour included along with the hashtag cheerlights was the norm, I needed to simplify the process.<br />
<br />
Firstly obtain an Amazon Dash Button, they are a fiver in uk money, but order the product that the button is for e.g. duracell order batteries, then you get your fiver back making it free.<br />
<br />
next was to follow the instructions that come with the dash button, order those batteries (or whatever you chose the dash button to be) then delete the button before re installing it. when you get to the point of choosing your product again just exit and turn off dash button notification as you dont want to be ordering more product everytime the button is pressed.<br />
<br />
next was to write the code, I needed (and failed quite a few times to begin with) code that could look for the mac address of the amazon dash button on my network, after several tries and googling each bit of code that gave me errors I found and edited some lines and bingo the hello world message I had been looking for telling me the button had been pressed and the ip address of the router.<br />
<br />
I then tried to incorporate a way that this could be tweeted and colour and went for a random message option where I had a dozen ready made sentences with a different colour mentioned in each followed by the hashtag. I ended up using tweepy which is easily installed with a apt-get install python-tweepy and went to an old blog I had about a twitter camera I built for my wedding and hacked away at the code taking all the bits i needed and writing it to just tweet once when code was run and it worked.<br />
<br />
Next was to merge both scripts into one and run it, bingo it worked and didnt send tons of messages either which was a main worry. <br />
<br />
Future work on this code will be to introduce a way to detect you are not tweeting the colour already in use and also not to tweet a previous colour as twitter doesnt like this.<br />
<br />
My code can be found on git hub at github.com/smstext/dashbuttoncheerlights<br />
<br />
<br />Anonymoushttp://www.blogger.com/profile/01619753419899991396noreply@blogger.com0tag:blogger.com,1999:blog-5629279720732787189.post-48688381637262874892017-10-21T01:24:00.000+01:002017-10-21T10:03:20.278+01:00Getting the best with Seat EcotrainerThis has been something that's interested me for about ten years now after being placed on a fuel efficient driving course. Before the course I was lucky to get anywhere near 400 miles on a full tank of petrol, but afterwards I could easily get more plus more with 10-30%<br />
<br />
Now on Seat cars we have the Ecotrainer which displays your fuel efficiency as you drive.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFOpQrUdnNTUx0Nnh3JxYIQADv3jmEsNpQNOzHaSY2Yopkdy1IDr4lxkD8o6mG089t6O1gd2vuacozx8Kdnk-YgieWveoEitCI1hIBfwZJNB2wcoX3Pd2XfeSmf3M20E_E5W9JKLV7dFDU/s1600/l20160714161547.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="570" data-original-width="900" height="202" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFOpQrUdnNTUx0Nnh3JxYIQADv3jmEsNpQNOzHaSY2Yopkdy1IDr4lxkD8o6mG089t6O1gd2vuacozx8Kdnk-YgieWveoEitCI1hIBfwZJNB2wcoX3Pd2XfeSmf3M20E_E5W9JKLV7dFDU/s320/l20160714161547.jpg" width="320" /></a></div>
<br />
So how do I get the most out of it and score high? Well I'm running a TSI although my last car was diesel which could reach between 60-70 mpg, this one i can get nearly 60 mpg but 50-55mpg is normal, let's look at how we can achieve great mpg and 97-99% eco points.<br />
<br />
Firstly is the accelerator pedal, 60% of fuel is wasted accelerating, we want to pull away lightly pressing the accelerator. We also want to change gear around 2,000 rpm for petrol and 2,500 rpm for diesel. Once we are in top gear keeping revs around 2-2.5k and speed around 45-50mph any faster we loose fuel consumption to wind resistance.<br />
<br />
We also want to plan in advance, breaking hard means we are wasting fuel, instead letting off the accelerator and using engine speed to naturally slow down instead.<br />
<br />
Splitting the road into thirds, getting up speed in first third, maintaining speed in second third and naturally slowing in last third.<br />
<br />
Keeping the journey smooth, you will loose points if you don't keep the car in the blue segment and importantly on the left of the screen it will warn you if anything is effecting your fuel economy like wrong gear, too fast or harsh breaking.<br />
<br />
Also make sure you don't have unnecessary belongings in the car, a full boot etc can reduce your fuel consumption by 10% also under inflated tyres as this causes resistance and again will affect your mpg.<br />
<br />
Roof racks and damaged body work reduces aerodynamics too, along with an unmaintained car, so keep up your services.<br />
<br />
Now to the inside of the car again we have air con which uses around a litre an hour and running window heaters will draw on the battery and in turn the engine will work a bit harder to charge the battery, the car radio however doesn't use much.<br />
<br />
Lastly don't leave the engine idling, move off straight away, avoid stop start in traffic instead try keeping the vehicle moving slowly, less fuel will be used as the momentum is already there. If you have to stop then ensure you have stop/start enabled as any stops of over 30 seconds will save you fuel and keep your mpg higher.Anonymoushttp://www.blogger.com/profile/01619753419899991396noreply@blogger.com0tag:blogger.com,1999:blog-5629279720732787189.post-80012527619118239662017-08-15T00:58:00.000+01:002017-08-15T00:58:46.895+01:00Making my own BAD USBI've seen many different tutorials over time, usually you have to buy a certain type of usb stick and then use specific programs to burn a new firmware on it and before you know it spent £20+ on it.<br />
<br />
Next I've seen a Raspberry Pi Zero with Poison Tap placed on it, again very obvious plugging in a small computer with various leads which then look very suspicious.<br />
<br />
However I soon came across a USB Beetle which is a very tiny computer and can be purchased within a USB case for around £5 including postage off well known auction sites.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimNjQhkxUB3mU-Mr6esvp2iZZoy-dIu8Jo09RrEcAISZsV3RgzO4_8j3hThQnZQiHfIi5QAVzESux1SfKOLRoieqNfhfxaeF_fp43-6V5fyWHnR9htvs3XIlslEr3h-rBgWXEhkIO6ihyG/s1600/%2524_1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="400" data-original-width="400" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimNjQhkxUB3mU-Mr6esvp2iZZoy-dIu8Jo09RrEcAISZsV3RgzO4_8j3hThQnZQiHfIi5QAVzESux1SfKOLRoieqNfhfxaeF_fp43-6V5fyWHnR9htvs3XIlslEr3h-rBgWXEhkIO6ihyG/s320/%2524_1.JPG" width="320" /></a></div>
<br />
<br />
The USB Beetle is a tiny USB ATmega32u4, running at 16 MHz with 32kb of memory and can be programmed with Arduino IDE programmer available from the arduino.cc site.<br />
<br />
Next download this simple program called rubberduino from https://github.com/zatarra/rubberduino this program translates rubber ducky scripts into Arduino so it can run from the usb beetle and is very easy to set up thanks to a great README.md file.<br />
<br />
Now visit usbrubberducky.com and choose the scripts for ideas or write your own. Ducktoolkit.com is another really useful site and certainly worth a look too.<br />
<br />
So how does this work? Surely anti virus scanners or blocking programs running from usb should halt this? Well actually no. If you have looked at the code once ready to transfer from Arduino IDE to this device you would have notice mention of keyboard.h and this is the secret.<br />
<br />
The device acts as a keyboard and because of this the computer doesn't see it as a threat. The USB device then types out the commands from the scripts uploaded to the USB device and can do this up to 200 times faster then you or I typing it. A good example is the rickroll script that opens up a hidden window and plays Rick Astley Never gonna give you up. It also stops the volume from being turned down leaving the user no other option but to pull the power lead and reboot, however more sinister things can be done like create a reverse shell or add malicious code to the computer.<br />
<br />
So no matter how locked down the PC is against usbs/removable drives, a USB that looks like a usb but acts like a keyboard will defeat it. Next time you see someone plugging in a usb think this, is it a usb or is it a bad USB device.<br />
<br />Anonymoushttp://www.blogger.com/profile/01619753419899991396noreply@blogger.com0tag:blogger.com,1999:blog-5629279720732787189.post-80273806863105678472017-08-14T00:47:00.000+01:002017-08-14T00:47:16.453+01:00Laser Cat Laser Cat nothing like a Laser Cat<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJvPTuc7lJGyBkSMNuwxZG1NM9sAR45l51iN6X1-TIT8oslIQ7UmSe1Rmz0Hmi0S_Kni_9UbLikDUNb9RokajhvUIFnCrkr_ZifRGWYc3MDMmwDbDQJZKBzNi1eNi3f2KlF53ztUY2nbNw/s1600/IMG_20170814_002331.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1600" data-original-width="1200" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJvPTuc7lJGyBkSMNuwxZG1NM9sAR45l51iN6X1-TIT8oslIQ7UmSe1Rmz0Hmi0S_Kni_9UbLikDUNb9RokajhvUIFnCrkr_ZifRGWYc3MDMmwDbDQJZKBzNi1eNi3f2KlF53ztUY2nbNw/s320/IMG_20170814_002331.jpg" width="240" /></a></div>
<br />
<br />
After sorting out my Raspberry Pi stuff I found an old arduino uno lying around. This was soon followed by a metal tin from one of my Pimoroni.com orders. I remembered there was a recent article on building a laser device for cats and as squatter cat has moved in (now named puss) and she loves chasing things I thought I better have a go.<br />
<br />
So purchased a pan/tilt kit and a 3 pin laser which later turned out I had both in my bits box. I then used my Dremel to cut several holes into the tin for wires and power and tried to fix the pan and tilt with glue but just wouldn't stay, so drilled a tiny hole and screwed the motor to the tin, this was the easy part.<br />
<br />
Next up was the coding, not had the best of luck with arduinos but found code written by La Fabrique DIY on his github page at https://github.com/LucasBerbesson/Laser-cat and uploaded it and bingo it works.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.blogger.com/video.g?token=AD6v5dz1dTY3xSl62EuxWdDZYZojSuX_V4brt06EYFmK36786jRmC6cFVQR4VvtYK6HNGAeDn2Ae0GUTyODl2PsDwA' class='b-hbp-video b-uploaded' frameborder='0'></iframe><br />
<br />
<br />
<br />Anonymoushttp://www.blogger.com/profile/01619753419899991396noreply@blogger.com0tag:blogger.com,1999:blog-5629279720732787189.post-58026927516707592812017-05-13T02:16:00.000+01:002017-05-13T02:16:53.572+01:00NHS hit by ransomwareBeen watching this on Twitter this evening and have been intrigued with this so called sophistic attack, lets delve deeper.<br />
<br />
The
attack is actually using the EternalBlue vulnerability (patched at
beginning of March) released over the Easter Weekend among many other
vulnerabilities called zero days (as Microsoft had not been made aware
of them up to this point) and looked like they had been created by
Equation Group for the NSA. Shadow Brokers managed to obtain these
vulnerabilities, possibly by hacking the NSA and then tried to sell them
to the highest bidder after originally trying to sell them off for
around $1M but paid for in bitcoins, this carried on dropping and
dropping till they eventually released the 300mb file on the Easter
Weekend.<br />
<br />
On closer inspection the exploit ETERNALBLUE
works by remotely connecting via SMB & NBT (Windows XP to Windows
2012) and basically hits any windows machine older than Windows 10,
hense bring on the ransomware using this exploit plus some FUZZBUNCH
exploits and you have WannaCry or WCry 2.0 .<br />
<br />
Its
been written in C++ and the code is easily viewable as no attempt has
been made to hide the code and encrypts the files and adds a .WNCRY
extension before asking for a $300-$600 bitcoin ransom.<br />
<br />
So
does that mean Im vulnerable? providing you have applied all Microsoft
security patches including MS17-010 released in March then no you should
be safe. also stopping the SMB V1 service which this ransomware/malware
uses.<br />
<br />
So far it looks like if you can crash Wcrypt it
will reset, however if it does infect your machine it will also add the
DOUBLEPULSAR backdoor. Also if
www.iuqerfsodp9ifjaposdfjhgosurijfaewrwergwea.com is up the virus exits
instead of infecting the host.<br />
<br />
This also only affect
Microsoft products so linux users you are safe, but again dont open
those attachments you were not expecting, use a good anti virus and back
up your files on a external device as well as saving very important
work to usb sticks. <br />
<br />
So far over 70k machines have
been infected and thats not just NHS machines; FedEx, Telefonica,
Shaheen Airlines are to name a few.<br />
<br />
Have these pesky kids
got away with it? well the bitcoins can be traced to an extent so they
will need to clean the coins by passing them through bitcoin launderers,
other people, a few anonymous throwaway bitcoin accounts before finally
transfering the money into their own account for each $300 I can see
them being left with $100 per ransom or less as this will have to go on
and on for months. Already the ransonware has been dissected and those
who know their stuff in bitcoins have already started to track the
bitcoins about.<br />
<br />
nb: binary blob in pe crypted with password "WNcry@20l7" Anonymoushttp://www.blogger.com/profile/01619753419899991396noreply@blogger.com0tag:blogger.com,1999:blog-5629279720732787189.post-46156574149105984382017-04-19T10:47:00.002+01:002017-04-19T10:48:27.380+01:00The Annoying Pi<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMWQOwO_sl-StL5O4S9DKBf3MZU-z0URp9FANF83DGt2OZhMuS7SI1UJjtTi2b-tnBowRUYxcBx4OZCRnWHhTp5T_pmUHzhJZHI7ey3EOunIyKUMjImMbqkqnLI1KxnLV-B_j_rqIdbp5s/s1600/1492593750794-2100622669.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMWQOwO_sl-StL5O4S9DKBf3MZU-z0URp9FANF83DGt2OZhMuS7SI1UJjtTi2b-tnBowRUYxcBx4OZCRnWHhTp5T_pmUHzhJZHI7ey3EOunIyKUMjImMbqkqnLI1KxnLV-B_j_rqIdbp5s/s320/1492593750794-2100622669.jpg" width="240" /></a></div>
<br />
Are practical jokes your forte ? Then this will be right up your street and can be built for around £20 of which probably be a lot less as you will no doubt have these bits already lying around.<br />
<br />
So lets get started this is what you need:<br />
<br />
Pizero w<br />
Speakerphat<br />
Usb powerbank to power it.<br />
<br />
After following the instructions on Pimoroni the makers of speakerphat and the installation of the phat to the pi you will need to do a few things. First is to log on to wifi, there is enough tutorials should you need to ask how to do that. Next is to search for "annoying .wav" you should find quite a few sites and from here download the files. I found that renaming the files to something shorter like buzz.wav or scream.wav will make things easier later on.<br />
<br />
Next open a command line and go to raspi-config and enable ssh. It will also be a good time to change any default password so no one else can ssh into your pi.<br />
<br />
Once done shutdown the pi, attach battery pack to pi and hide somewhere like under the bed or even back of a cupboard.<br />
<br />
Now fire up another pi or computer and start up terminal.<br />
<br />
Here we can use nmap to search for all connected devices on our network and get the ip address of the annoying pi or if before you shutdown the pi you do an ifconfig and write down the ip address on the wlan0 line.<br />
<br />
Next we need to ssh in and the command will be like this:<br />
<br />
sudo ssh pi@192.168.1.5<br />
<br />
Pi will be the user name and 192.168.1.5 (will be whatever your device has allocated to it) the ip address.<br />
<br />
Next it will ask for password and if correct will go on to ask you further questions of which just reply yes.<br />
<br />
Now we are logged in to the pi we can have some fun. Start by logging into the folder the .Wav files are stored in and most likely be Downloads with cd Downloads command. Here with the ls command we can see all the files. Next is to launch the files, you could write a random playing script with python but i dont think you will get the element of surprise to what we want.<br />
<br />
The next task is to start the sounds, this will be done with the following command with my scream.wav file.<br />
<br />
Sudo aplay scream.wav<br />
<br />
Now if all has gone well you should be hearing the file being played. When you have done this with a few files you will be able to choose the files quicker at the command line by pressing the up arrow to go through previous commands and choose the file if previously played quicker.<br />
<br />
<br />
Have fun and feel free to post any extra tips below.Anonymoushttp://www.blogger.com/profile/01619753419899991396noreply@blogger.com0tag:blogger.com,1999:blog-5629279720732787189.post-59255062072605733462017-03-07T23:28:00.001+00:002017-03-07T23:28:56.653+00:00Raspberry Pi Wedding Twitter selfie cameraI wanted to do something for my wedding to my wonderful wife that was different. We had already planned a non traditional wedding with lots of different things, but I also wanted something that would be seen as trendy amongst the cool kids.<br />
<br />
My daughter told me about a photo booth company but with such a small budget we couldnt afford one then I remembered something similar had been done and after a few googles I found tons of similar ideas but all seem to use Twython and from what I read parts had been depreciated yet I couldnt find the right commands to actually make it work.<br />
<br />
So with the latest Raspberry PiZeroW and offical case, old pi camera from another project I began my project. I had to enable ssh and vnc, personally I prefer sshing in to deal with issues but vnc can be better for trouble shooting.<br />
<br />
I then had to make a twitter account (@angelapawedding) and set up the api so i could get the access and consumer tokens and set to read write and got to work, even soldering two pins on the back to 3rd and 4th pin in on the top row to attach a two wire pc wire/button reset switch to. I figured this way if kids dropped or pulled it at least it could be reconnected with ease.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-VIIbO9iKR7XJEokjPuhZPFCE8hNxGaiyPVtNXVOKquDkAmaG4AYPcRhwbN82UV6tOe7xZgVzbxTEIwMY6aKaSu_tBq4Xvu_9HB0pVqbiHFP2Z6BF6Pg2dJ3HIDcvuDcMzKBbHvOb9v3b/s1600/IMG_20170303_122455.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-VIIbO9iKR7XJEokjPuhZPFCE8hNxGaiyPVtNXVOKquDkAmaG4AYPcRhwbN82UV6tOe7xZgVzbxTEIwMY6aKaSu_tBq4Xvu_9HB0pVqbiHFP2Z6BF6Pg2dJ3HIDcvuDcMzKBbHvOb9v3b/s320/IMG_20170303_122455.jpg" width="240" /></a></div>
<br />
here is the code:<br />
-----------------------------------------------------------------------------------<br />
<br />
#mypifi feel free to use<br />
#!/usr/bin/env python2.7<br />
import tweepy<br />
import sys<br />
from picamera import PiCamera<br />
from time import sleep<br />
from datetime import datetime<br />
from gpiozero import Button<br />
<br />
consumer_key = 'goes here'<br />
consumer_secret = 'goes here'<br />
access_token = 'access token code goes here'<br />
access_token_secret = 'access secret goes here'<br />
button = Button(14)<br />
camera = PiCamera()<br />
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)<br />
auth.set_access_token(access_token, access_token_secret)<br />
api = tweepy.API(auth)<br />
<br />
while True:<br />
button.wait_for_press()<br />
status = "#LobsterWedding"<br />
timestamp = datetime.now().isoformat()<br />
photo_path = '/home/pi/wedding/photo/%s.jpg' % timestamp<br />
sleep(3)<br />
camera.capture(photo_path)<br />
<br />
with open(photo_path, 'rb') as photo:<br />
api.update_with_media(photo_path, status=status)<br />
<br />
<br />
-------------------------------------------------------------------<br />
<br />
The status part of the code is what text you want to display with the picture I used a hashtag so it be easy for people to find pictures or even add theirs for the wedding. If you are interested, lobsters are supposedly meant to mate and be loyal to the same partner for life.<br />
<br />
photo_path is where the picture is stored in my case its stored in folder called wedding in another folder within called photo. each file saved here is given a unique filename and the program then tweets the latest picture using the twitter api via tweepy.<br />
<br />
I saved the file as camera.py and chmod +x the file. Once in place I vnc'd into it opened up a terminal and ran camera.py and then left it.<br />
<br />
So throughout the evening guests (and especially the younger ones) had something to do and even my selfie obsessed daughter had a go as you will see below. Guests could look up what had been tweeted by the camera at @angelapawedding or by searching the hashtag #lobsterwedding.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9z5T5nAXvU57C2c6iWO9eUHj1dB-VszwjenjM6AoF158biZEmFcRjdC8wi88qY0fZOZpp-y8Z3K7GaWm45hurKaoKpXaRryrK_ADkn-WMsoRAX8WMItxKu-zMPiIP3SX8rj_lE0qwJPW1/s1600/C6QVDRDWAAA38hy.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="213" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9z5T5nAXvU57C2c6iWO9eUHj1dB-VszwjenjM6AoF158biZEmFcRjdC8wi88qY0fZOZpp-y8Z3K7GaWm45hurKaoKpXaRryrK_ADkn-WMsoRAX8WMItxKu-zMPiIP3SX8rj_lE0qwJPW1/s320/C6QVDRDWAAA38hy.jpg" width="320" /></a></div>
<br />
<br />
Sure the code could be cleaned up a bit more and more could be done with it, but for a quick project between finalising the final parts of the wedding I thought it was pretty good and was also a good talking point to guests.<br />
<br />
If you do find a way of tidying up code then feel free to comment below and I will add it to the blog.Anonymoushttp://www.blogger.com/profile/01619753419899991396noreply@blogger.com0tag:blogger.com,1999:blog-5629279720732787189.post-35339358887509982632016-06-22T20:57:00.000+01:002016-06-22T20:57:10.633+01:00raspberry pi news ticker Ive been trying to do more with the max7219 for a while. Whilst playing with an 8x8 square can get you started a 16x8 gets fun but addictive.<br />
<br />
Last week i got a 32x8 board through which is basically 4x 8x8 matrixes still not happy i ordered another that arrived today and soldered the two together so i have 8x 8x8 matrixes and with editing led.matrix() from 4 to 8 it worked.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH6oq-DvYru4y3GxMf5ROmmUNhdLYruC_nW-y3vWF-TJgS3XpPfSpL9QD0N5I2eOlHPTjU_2bqc0RSF5t-iMdbi0LIB60iK8nQtr_Idy-kT64AZ0facg5AHA9K4Y6w3zTgSjcE57Y8-Ecx/s1600/IMG_20160622_134431.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH6oq-DvYru4y3GxMf5ROmmUNhdLYruC_nW-y3vWF-TJgS3XpPfSpL9QD0N5I2eOlHPTjU_2bqc0RSF5t-iMdbi0LIB60iK8nQtr_Idy-kT64AZ0facg5AHA9K4Y6w3zTgSjcE57Y8-Ecx/s320/IMG_20160622_134431.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
The wiring was a case of wiring vcc to 3.3v. ground to ground. Din to pi pin 19. Cs to pin 24 and the last one clk to 23.<br />
<br />
With the help my last post and rmhull s github code for the 7219 chip i was soon running various code. Next was to get a news ticker working and after a search i found feedparser a python module which can be installed with apt-get python-feedparser.<br />
<br />
Running into a bit of difficulty i turned to twitter with what i had coded so far and help from @rgee0 aka richard gee we got there in getting a news ticker on screen.<br />
<br />
Next was to merge the two codes and bingo worked on first attempt<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6-VIdz41cr__CloSoohfCd5scVKwrnpREVXSPH9b9Cqbu8hXgnRWgLT15eZvCD0nJrt18WLfLRdC0QZVJ7rdGEC7rOWhWzWK1SXwbkfnux_DAjxV0o7ILlFjWUevKyF6yDfZ6zYN-yxTX/s1600/IMG_20160622_205226.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6-VIdz41cr__CloSoohfCd5scVKwrnpREVXSPH9b9Cqbu8hXgnRWgLT15eZvCD0nJrt18WLfLRdC0QZVJ7rdGEC7rOWhWzWK1SXwbkfnux_DAjxV0o7ILlFjWUevKyF6yDfZ6zYN-yxTX/s320/IMG_20160622_205226.jpg" width="240" /></a></div>
<br />
Here is my newsticker in action.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJyocTYFNzEq8YpnhcSjK7W49jj5GLkkiZY-r2UYhj6RQLmwHRorIu2uMTOtK-u_q0lriQedVtgoXCt7p17ZKL0rA9F6FkbVL1NvlmbYzxUjqahu15iVZRF8_EfkJ-SmDKnishG18EMn-D/s1600/IMG_20160622_205415.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJyocTYFNzEq8YpnhcSjK7W49jj5GLkkiZY-r2UYhj6RQLmwHRorIu2uMTOtK-u_q0lriQedVtgoXCt7p17ZKL0rA9F6FkbVL1NvlmbYzxUjqahu15iVZRF8_EfkJ-SmDKnishG18EMn-D/s320/IMG_20160622_205415.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
There we go feel free to add and change the code and comment below.Anonymoushttp://www.blogger.com/profile/01619753419899991396noreply@blogger.com0tag:blogger.com,1999:blog-5629279720732787189.post-41127704874199264982016-06-13T19:32:00.000+01:002016-06-13T19:34:14.737+01:00Keyes 16x8 led matrix add on board<div class="separator" style="clear: both; text-align: center;">
I bought one of these keys 16x8 led boards a while back but couldnt get it working. Well a lie i couldnt get both screens working.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
So tonight whilst looking for something different I found this board and decided to give it another try. On googling i kept finding arduino set ups which wasnt what i wanted and after using git clone https://github.com/rm-hull/max7219.git i searched for projects which used mr hulls code and came across one which pointed me to another github repo.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
So here we go:</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
First enable SPI in sudo raspi-config (look in advanced menu)</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
next type:</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
sudo git clone https://github.com/leon-anavi/raspberrypi-matrix-led-max7219</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
cd raspberrypi-matrix-led-max7219</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
sudo python setup.py install</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
There we go. Some good example codes there and after some playing around i managed to get it to display the time.</div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
.<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh22fIH8kAK530wewERd5Z6S3LKjaXhyTjDcxOnfVDgCZd8_NU-F1soelL4pZzB959szfv5kf4aU3_ZqVVIyKYfhqLI675Kg6dF6A-L2LSoXZKuK9S6965UdHqzjHw4s3C_cXOcWpBPLyO4/s1600/IMG_20160613_191118.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh22fIH8kAK530wewERd5Z6S3LKjaXhyTjDcxOnfVDgCZd8_NU-F1soelL4pZzB959szfv5kf4aU3_ZqVVIyKYfhqLI675Kg6dF6A-L2LSoXZKuK9S6965UdHqzjHw4s3C_cXOcWpBPLyO4/s320/IMG_20160613_191118.jpg" width="240" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRH4iPiBmzxmTjHG13WXygQqGe1U5RqSJcexdewf4IIAhc0fa99E-ahFn3Opgf6qP150xYgxRtXZDv8a6rb_jLLjX-9CTzy62po8gBljhJipq28vFb1v5pczBChaKq-avVpAorsZ-FULZL/s1600/IMG_20160613_182059.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRH4iPiBmzxmTjHG13WXygQqGe1U5RqSJcexdewf4IIAhc0fa99E-ahFn3Opgf6qP150xYgxRtXZDv8a6rb_jLLjX-9CTzy62po8gBljhJipq28vFb1v5pczBChaKq-avVpAorsZ-FULZL/s1600/IMG_20160613_182059.jpg" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbPuaGekgpEwSmB9T0rStbyHHk_Mz8NiRQ9EYMrdRwrKWGVdRDWwwHCwsBew2Hyd9d5MkHzRjsrMVM2cyYYTWMCyohd0CLI_u1v4HcJCl0XmSyDVi6gZ-XUlytJNLw4uJOpco2Hx22kd85/s1600/IMG_20160613_182045.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgbPuaGekgpEwSmB9T0rStbyHHk_Mz8NiRQ9EYMrdRwrKWGVdRDWwwHCwsBew2Hyd9d5MkHzRjsrMVM2cyYYTWMCyohd0CLI_u1v4HcJCl0XmSyDVi6gZ-XUlytJNLw4uJOpco2Hx22kd85/s320/IMG_20160613_182045.jpg" width="240" /></a></div>
<br />Anonymoushttp://www.blogger.com/profile/01619753419899991396noreply@blogger.com0tag:blogger.com,1999:blog-5629279720732787189.post-79286755070206727912016-05-29T20:46:00.000+01:002016-05-29T20:46:02.841+01:00Reintroduction to cachingAfter the passing of my beloved dog Frodo a couple of weeks ago I decided to brush the cobwebs off my basic looking mountain bike that I had been given a while back and decided to take it for a ride and do a few geocaches as a carrot to the donkey to ensure i didnt give up to quick. First thing i noticed was I lost my pen. after trying to sign in with a dirty stick I managed to find a waxy crayon in the puncture repair kit and decided this was my pen for the day.<br />
<br />
It was nice to get back into the countryside and felt weird as this was where me and Frodo had come many times, but in recent years we had gone from unlimited miles per walk, to 10, then 6, down to 3 then less than a mile.<br />
<br />
I was disappointed to the fact there were not any traditional size caches just tiny boring micros.<br />
<br />
I had been for a while playing Ingress another location game but after being caught up in a widespread ban for allegedly breaking TOS which to this date I still dont have a clue but it be something to do with travelling to fast between locations or something stupid to which i have lodged a appeal as reaching level 14 without cheating and playing within the rules feels like an insult. The other option would be to start all over again and work my way back up and with what i know these days it would take long, but still why should I after the way they have treated me in this mass world wide ban sweep that took place last week. Ive heard that those that appeal have a very low chance of having their accounts reinstated so who knows I should hopefully be one of those.<br />
<br />
But on a huge positive I thought about my raspberry pi geocaching device. It was made with a pi model b. now thinking about it I could remake it as a wrist band device with a pi zero and a long lead to a battery pack in my bike bag and have a new gps system. maybe i will work on this idea next.Anonymoushttp://www.blogger.com/profile/01619753419899991396noreply@blogger.com0tag:blogger.com,1999:blog-5629279720732787189.post-609518281753020112015-12-15T10:50:00.001+00:002015-12-15T10:50:05.678+00:00LightshowpiThis is another project ive been preparing for christmas. Ive started small to see how i get on with 2x 20 led 3v lights from the local pound shop and a 3v EL wire again cheap so if it doesnt work ive not lost.<br />
<br />
After putting jessie raspbian onto the card and set up the configs i downloaded the lightshowpi software before wiring up the lights to a relay board. I didnt run into any problems as the lightshowpi site is well written. The only problem i did notice was my relay board being noisy but im hoping by getting a solid state relay board this will solve it.<br />
<br />
Here is a link to the youtube video i made.<br />
<br />
https://youtu.be/nl5m43lxC2gAnonymoushttp://www.blogger.com/profile/01619753419899991396noreply@blogger.com0tag:blogger.com,1999:blog-5629279720732787189.post-57482510645679157422015-12-09T09:53:00.000+00:002015-12-09T09:53:57.518+00:00MyPiFi Cheerlight Christmas Decor<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdfo6vUoiYXW5tzLv4YEuqb2qoPEI287U5UFPnLK2pa8GIrcprgez33cTxc-fFcIazkFkfvZ8E47CjY3C8rC_19JHvsg8ec7884_UYrAoCHzkFfrWt1Ln723SdwAx840FYesGUVJdwB2jV/s1600/VID_20151206_204257.mp4" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="179" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdfo6vUoiYXW5tzLv4YEuqb2qoPEI287U5UFPnLK2pa8GIrcprgez33cTxc-fFcIazkFkfvZ8E47CjY3C8rC_19JHvsg8ec7884_UYrAoCHzkFfrWt1Ln723SdwAx840FYesGUVJdwB2jV/s320/VID_20151206_204257.mp4" width="320" /></a></div>
<br />
<br />
I decided a while back that after doing my Christmas tree last year in NeoPixel lights http://www.youtube.com/watch?v=uoGk0M8YdMA and using Penguin Tutors excellent DJ lights program https://github.com/penguintutor/neopixel-gui that this year I wanted a Cheerlight item (cheerlights.com) like I had run on the Unicorn Hat by ForToffee https://github.com/ForToffee/UnicornHAT Cheerlights is an internet of things where people use twitter and the hashtag #cheerlights and a colour and all items running cheerlights around the world will change colour to the current tweeted colour.<br />
<br />
So the hunt was on for something I could use and low and behold I came across this laser cut house that had a battery pack running some plain leds inside. Once it arrived it was time to strip out the lights and add 13 neopixels inside on a long strip, but to be able to get inside i needed to use a craft knife to carefully remove the roofs and one building.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeSBGhSpnGrRD1k1NILOJG0chnhLdeEENnm_XF0Vk2opeskQcDPkkr5R09F2tX5f8Dm3OHJzT-Ljin5Iv_9q6Ri4kMuQVA4Ee7GYf67vYNeFBhaf8baiQh2FuGQiEODUECukZlKJ6Hwsmm/s1600/IMG_20151021_171236.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjeSBGhSpnGrRD1k1NILOJG0chnhLdeEENnm_XF0Vk2opeskQcDPkkr5R09F2tX5f8Dm3OHJzT-Ljin5Iv_9q6Ri4kMuQVA4Ee7GYf67vYNeFBhaf8baiQh2FuGQiEODUECukZlKJ6Hwsmm/s320/IMG_20151021_171236.jpg" width="240" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
I originally tried neopixel buttons but everytime i had these in place a wire would snap so from 5 buttons the amount of pixels would go up.<br />
<br />
Once in place I soldered the pixels to a MyPiFi neopixel controller board and attached to one of my pi's http://smstextblog.blogspot.com/2015/03/afirstly-thank-you-for-purchasing-this.html . I then glued everything back together and then followed Tonys great NeoPixel how to guide off of adafruit https://learn.adafruit.com/neopixels-on-raspberry-pi/overview Once all the software was in place I ran the first test and all seemed fine it worked. However when I tried to run the Cheerlight code from David Bradway https://github.com/davidbradway/cheerlights I just couldnt get it to work. I asked about and was told two different things to try so tried both at the same time, the first was to use an old pi with 26 pin header and second was to use Raspbian Wheezy and not Jessie which I tried and bingo, it worked I couldnt believe it.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhe7bb3xw6TXU9lUeoHm_X7yZg_yfcKexjnXD3RnM_YTR1kWAquI74omUzsZ3fLv9XAODtSoqDwalBhE9iNIwHcGBnPmHDk8xK1UHHS55d5Q8b7o8ujwv92aX6P4NsLcAgBDLV8nqdjBD7o/s1600/VID_20151206_204245.mp4" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhe7bb3xw6TXU9lUeoHm_X7yZg_yfcKexjnXD3RnM_YTR1kWAquI74omUzsZ3fLv9XAODtSoqDwalBhE9iNIwHcGBnPmHDk8xK1UHHS55d5Q8b7o8ujwv92aX6P4NsLcAgBDLV8nqdjBD7o/s320/VID_20151206_204245.mp4" width="180" /></a></div>
<br />
<br />
I have since glued the Pi and the display to some thin mdf word to keep it all together and stop the wires being pulled and this is the finished result.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkpy9cDRCeCrF3dI3aZyC3WVlYpk4TWqnMnMzKZoWgJ_lGCc3TfY8KWm-0XGFXGDEduFEQ4NkOobndAiA8ZQiMhy6w86UDcZ0yaErYJn_fNmVMrstwfnFpr6lJ2BBgsKU11IdxIvst_Zjq/s1600/IMG_20151129_130904.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkpy9cDRCeCrF3dI3aZyC3WVlYpk4TWqnMnMzKZoWgJ_lGCc3TfY8KWm-0XGFXGDEduFEQ4NkOobndAiA8ZQiMhy6w86UDcZ0yaErYJn_fNmVMrstwfnFpr6lJ2BBgsKU11IdxIvst_Zjq/s320/IMG_20151129_130904.jpg" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYs9lRyv8NOzLOLsizbN1lROgRzA93oSMQ9e267A_-yS_n9fliVEF4Ut1ofdSmmjTOTglrlORh3ry9wXCpvSKNZiy2ZcpLvPAJ4jB2MdtZi9suWCznBSUsCTfyBLmF3BdSyGcNlv7do-pw/s1600/VID_20151129_154649.mp4" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="179" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYs9lRyv8NOzLOLsizbN1lROgRzA93oSMQ9e267A_-yS_n9fliVEF4Ut1ofdSmmjTOTglrlORh3ry9wXCpvSKNZiy2ZcpLvPAJ4jB2MdtZi9suWCznBSUsCTfyBLmF3BdSyGcNlv7do-pw/s320/VID_20151129_154649.mp4" width="320" /></a></div>
<br />
<br />
There is still some coding bits to fiddle around with but apart from that this is now ready for the christmas festivities and perhaps after christmas i could remove the christmasy figures off the front and just have this as an everyday cheerlight display for my desk.<br />
<br />
Thank you for reading and please share.Anonymoushttp://www.blogger.com/profile/01619753419899991396noreply@blogger.com0tag:blogger.com,1999:blog-5629279720732787189.post-75533277738391996582015-03-18T11:23:00.001+00:002015-03-18T11:23:11.108+00:00ingress the new geocaching game?As many of you know I use to be a avid cacher, hitting the top 50 finders at one point, first to find 100 5/5 extreme caches and always one looking for quality over quantity. However after a run in with a local reviewer over a number of things that I personally still stand for and the politics that came about, I like many just gave up. I've not renewed my membership, i rarely look for caches andvi believe I still have caches found on my GPS that I can't be bothered to log yet, so why?<br />
<br />
Well its why everyone is moving over to ingress, no more travelling hundreds of miles to get a smiley, getting ivy rash from searching through ivy for a micro or searching through rubbish in a layby for a watersoaked logbook that's seen better days.<br />
<br />
I tried munzees in the summer and was bored rather quickly, scanning barcodes and quite often some that were rather weathered and wouldn't scan I needed something better, remembering that a friend had shown me an app last year but was only available for android at the time (now on iPhone too) I decided to give this new game ago.<br />
<br />
Its called ingress, its about battling blue team (the best) versus greens (the enemy), you pick a side and that becomes your fraction. The idea is to take over portals which are places of interest and of which scores you points and linking them to other portals which can be captured and recaptured many times a day in busy spots. Portals are normally submitted to show places a visitor might not go, a work of art, sculpture, area of interest or historic value. I for one have discovered new things locally as well as visited things I've forgotten and so far other players have been great with advice and support and best of all its free.<br />
<br />
So it looks like I've discovered a new way to pass my time and enjoy what's around me without spending loads on petrol travelling to my nearest cache. Take a look and let me know what you think.Anonymoushttp://www.blogger.com/profile/01619753419899991396noreply@blogger.com0tag:blogger.com,1999:blog-5629279720732787189.post-36178030743165495942015-03-02T12:52:00.000+00:002015-03-14T23:22:03.338+00:00Neopixel assembly guide and linksFirstly thank you for purchasing this board, if you have children assembling this then adult supervision will be required along with an explanation of the dangers of electrical voltage.<br />
<br />
While I recommend a 5v 4amp power supply from CPC.co.UK you can use an outdoor lights 5v 4amp supply.<br />
<br />
Here is what you should have to start with:<br />
<br />
1x gpio header<br />
1x PCB board with chip already on board<br />
3x terminal screws<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcRiiO8WaEjnfpRB2k-Tt3QfmVArl0Qb_MTCa-RUmUHQzWwlYtSjMaKPX-jBs9hZ1ldiJ1uCg_y9ouHwN5NrhI-dmcfpzPJ9dEsBPzahJEq-hzv3XrVjgzVqkZ6FbGc8oV5o5OblWcpQzW/s1600/IMG_20150314_165318.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcRiiO8WaEjnfpRB2k-Tt3QfmVArl0Qb_MTCa-RUmUHQzWwlYtSjMaKPX-jBs9hZ1ldiJ1uCg_y9ouHwN5NrhI-dmcfpzPJ9dEsBPzahJEq-hzv3XrVjgzVqkZ6FbGc8oV5o5OblWcpQzW/s1600/IMG_20150314_165318.jpg" height="320" width="237" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: justify;">
<span style="text-align: left;">The chip should already be on the board as it was the best way for posting them, they haven't been soldered but can be although it should work how it is, please ensure the dimple is at bottom as per pic.</span></div>
<br />
Using any method you have to hold board in place start by soldering the gpio header being careful not to melt the chip.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx6zdRqU8emWxyniKEyTwDuBT1zUPPHu84EtwXkwePTSq_wqIA2zA92vAll_Xj_8BZVMNBRJL1kjzIvIlqmsctF_HnZupJhyCfYYjnVQKzxswy-U-eu0Dv1MCwFW-Q7ZoIJ6fXHccT98LK/s1600/IMG_20150314_165341.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhx6zdRqU8emWxyniKEyTwDuBT1zUPPHu84EtwXkwePTSq_wqIA2zA92vAll_Xj_8BZVMNBRJL1kjzIvIlqmsctF_HnZupJhyCfYYjnVQKzxswy-U-eu0Dv1MCwFW-Q7ZoIJ6fXHccT98LK/s1600/IMG_20150314_165341.jpg" height="320" width="237" /></a></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: justify;">
<span style="text-align: left;">Next solder on the screw terminals ensuring they are the correct way as per picture.</span></div>
<div class="separator" style="clear: both; text-align: justify;">
<span style="text-align: left;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiajKK4FgnB9mnFOLMACG9hwAVUCxlafaM82totV8LocPcAl9We8DsK6x2hfG2ymuIbR2z6xMgHyTzUDeY8yhhLahpm7qY_inIUJR0WZIfHkl5toemHF4xIe4vpbHNofxtpKLb8QPb_HYpB/s1600/IMG_20150314_165457.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiajKK4FgnB9mnFOLMACG9hwAVUCxlafaM82totV8LocPcAl9We8DsK6x2hfG2ymuIbR2z6xMgHyTzUDeY8yhhLahpm7qY_inIUJR0WZIfHkl5toemHF4xIe4vpbHNofxtpKLb8QPb_HYpB/s1600/IMG_20150314_165457.jpg" height="320" width="237" /></a></div>
<br />
<br />
When finished the board should look like this.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizXTT7CL6m3ZXlDmPJAM9916euz4UNzuzVop7gCsCNBvxj-FB6pyjx3bGmqbMFFaYNz1X84ZHwoUWIG4yxo33tUKWr36urc6nLSPhfdlDUGMrBh52hoAu5RZMiWZauA-1WAKppBFYRb-Fg/s1600/IMG_20150308_140357.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizXTT7CL6m3ZXlDmPJAM9916euz4UNzuzVop7gCsCNBvxj-FB6pyjx3bGmqbMFFaYNz1X84ZHwoUWIG4yxo33tUKWr36urc6nLSPhfdlDUGMrBh52hoAu5RZMiWZauA-1WAKppBFYRb-Fg/s1600/IMG_20150308_140357.jpg" height="320" width="237" /></a></div>
Next use either the power supply from my original Xmas neopixel post or the recommended 5v 4amp one from CPC.co.UK<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Cutting the end off use a multimeter to figure out the wires, on mine the wire with the line down it was positive and the plain black was negative. Strip the ends just enough to screw into the plus and negative connection on the board and place some electrical tape around each wire so if they get pulled to hard or come out they won't short or be exposed. It can be a tight fit so cutting some of the bare wire off might be needed. If attaching a outside light power supply then two good bits of wire will do after you have checked the output and adjusted it with the pot terminal on the unit and a multimeter.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoAa5xO17SVFL3-W1aQkMOD3Td3cFYF79qyLgr25LinR3g0v3xjVDQ9-PhKHy0lQONsNjQ82pnElKP1iu0-e9zeERO_ZVpjkaHTFHV0Yy_7h89cusyBi7lMnqteewmNXzCuvEEEuV92my3/s1600/IMG_20150302_102831.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoAa5xO17SVFL3-W1aQkMOD3Td3cFYF79qyLgr25LinR3g0v3xjVDQ9-PhKHy0lQONsNjQ82pnElKP1iu0-e9zeERO_ZVpjkaHTFHV0Yy_7h89cusyBi7lMnqteewmNXzCuvEEEuV92my3/s1600/IMG_20150302_102831.jpg" height="320" width="237" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Once done screw the neopixel power to the positive and negative on the board screw terminal called neo. Next screw in the data lead to the screw terminal called data. The NC stands for not connected and does nothing.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Now you are ready to program it. Please look at my <a href="http://smstextblog.blogspot.co.uk/2014/11/xmas-tree-lights-with-raspberry-pi.html" target="_blank">Xmas neo lights blog link</a> for more details on coding and demo code.</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Or alternatively visit<a href="https://learn.adafruit.com/neopixels-on-raspberry-pi/" target="_blank"> Tony Dicolas excellent write up and code on Adafruit</a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
As usual info and links can be found on my <a href="https://www.google.co.uk/url?sa=t&source=web&rct=j&ei=pFz0VNSSCofLaJHhgJgD&url=https://www.kickstarter.com/projects/mypifi/mypifi-neopixel-controller-board-for-raspberry-pi&ved=0CBwQFjAA&usg=AFQjCNGoM4TC3NUDZDZMiCtblcmVBZ3i5w&sig2=zwG-dcmBBol7NXo3gt9pEw" target="_blank">kickstarter</a> </div>
<br />Anonymoushttp://www.blogger.com/profile/01619753419899991396noreply@blogger.com0tag:blogger.com,1999:blog-5629279720732787189.post-1343755255430726252015-02-21T10:27:00.001+00:002015-02-21T10:29:34.965+00:00Energenie infrared remote controlled socket<div class="separator" style="clear: both;"><a href="https://lh5.googleusercontent.com/-fqK15mpJHJA/VOhdiWLvMVI/AAAAAAAAB0E/fkj720HfH5o/s640/blogger-image-840129662.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://lh5.googleusercontent.com/-fqK15mpJHJA/VOhdiWLvMVI/AAAAAAAAB0E/fkj720HfH5o/s640/blogger-image-840129662.jpg"></a></div><div class="separator" style="clear: both;"><br></div><div class="separator" style="clear: both;">I got one of these the other week and have been testing it.</div><div class="separator" style="clear: both;"><br></div><div class="separator" style="clear: both;">It's a kit of an infra red add on board and infra red socket. The socket can be programmed to be turned on or off with any remote control and was so easy that my elderly anti technology mother was able to work it and ideal for her to turn on/off her heater or whatever else you want to use the socket for. Also with the long lead the socket can be placed out of reach, but the infra red part can be stuck with the enclosed sticky pad somewhere in sight of the remote control.</div><div class="separator" style="clear: both;"><br></div><div class="separator" style="clear: both;">Although I'm struggling to get my infra red add on board to work, I did try the demo one at a recent show at betts 2015 and was spot on. Would I get one erm ok, but if <span style="font-family: 'Helvetica Neue Light', HelveticaNeue-Light, helvetica, arial, sans-serif;">can I pick my automation gear I would go for the radio sockets as they can be hidden but only controlled with the supplied remote or add on board where as this any remote control or this add on board.</span></div>Anonymoushttp://www.blogger.com/profile/01619753419899991396noreply@blogger.com0tag:blogger.com,1999:blog-5629279720732787189.post-64928264703432816182015-02-21T10:17:00.001+00:002015-02-21T10:17:16.926+00:00Rav Power 6 in one WD02<div class="separator" style="clear: both;"><a href="https://lh6.googleusercontent.com/-tg9z0cyysrE/VOhbKsK_s5I/AAAAAAAABz4/vteth-bhmgg/s640/blogger-image-1848932685.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://lh6.googleusercontent.com/-tg9z0cyysrE/VOhbKsK_s5I/AAAAAAAABz4/vteth-bhmgg/s640/blogger-image-1848932685.jpg"></a></div><div class="separator" style="clear: both;"><br></div><div class="separator" style="clear: both;"><p dir="ltr"><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">I got a Ravpower filehub through this week, an RP WD02 model and thought I would run it through its paces.</span></p><p dir="ltr"><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Now normally when I attend Raspberry Jams I have to take an extension lead and battle for a power socket or take an external battery pack, then so I can connect to the pi either a big laptop or my phone plus the tp link access point plus lead to power it off the external battery.</span></p><p dir="ltr"><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Not with this, its a six in one device. It has a wireless router that you can use as an access point or link to your mobile or plug into a hotel internet socket for internet. You also have a micro sd card slot that can be used as a card reader or a nas file server, I'm guessing it can only take up to 64gb like what I'm using but couldn't find details anywhere so enough for 15 good quality films, over 10k 3 minute music tracks or just use it for your backup images.</span></p><p dir="ltr"><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Next was the battery which from flat took me 4 hours to charge with the official Raspberry Pi power adapter and best of all, with one of my add on boards flashing leds last for over the length of an average pi jam to an incredible 12 hours, 14 hours with my seven segment clock display making this more than brilliant for travelling as now I don't need all these extra things just the pi, this with its included lead will also fits from the hub to the pi power socket, wifi dongle and my smartphone (plus the add on board I'm showing) simples.</span></p><p dir="ltr"><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">So do I recommend it? well I love the tp link travel router/access point, but this was so much easier in my opinion to set up and price wise considering how many items are built into this is good value, so yes, now it means I can attend jams again without having to lunge around lots of boxes of kit.</span></p></div>Anonymoushttp://www.blogger.com/profile/01619753419899991396noreply@blogger.com0tag:blogger.com,1999:blog-5629279720732787189.post-1738931540282868372015-02-16T12:17:00.001+00:002015-02-16T12:17:28.281+00:00Review: RAVPower® Deluxe 14000mAh USB External Battery Portable Power
Bank Charger Pack<div><br></div><div><br></div>I bought this as a whim back in October last year. Reason being I attend lots of Raspberry Jams, yet power points can often be an issue.<div><br></div><div>Whilst I have over a dozen power packs now running various projects, very few feel well built, in fact this one feels like if it's dropped it won't spill its load, it also feels strong and sturdy and also looks great.</div><div><br></div><div><div class="separator" style="clear: both;"><a href="https://lh5.googleusercontent.com/-BK-V4cIy7ho/VOHf1YretII/AAAAAAAABzM/x0d4CLKf7X0/s640/blogger-image--1063206665.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://lh5.googleusercontent.com/-BK-V4cIy7ho/VOHf1YretII/AAAAAAAABzM/x0d4CLKf7X0/s640/blogger-image--1063206665.jpg"></a></div><br></div><div><br></div><div>It comes with a nice travel bag to keep all the leads together, has a built in torch and two usb sockets with one at 1amp the other at 2 amps meaning you can run two Raspberry Pi s together or run the HDMIPi screen with no problems.</div><div><br></div><div>I've tested both ports with a multimeter and can confirm it kicks out a healthy 5.25v and the ampage is what it claims. Many companies will claim that there's can run at the packaged volts and amps but very few do and this is the only one that can run the HDMIPI.</div><div><br></div><div>So running time, my wildlife pi camera lasted the entire night with plenty of charge left on it and when running off one of these at events I can safely say I know will never run out of juice too. I believe I can get nearly two full days out of it which would be plenty for the wildlife cam.</div><div><br></div><div>Yes this is also weighty and takes longer to charge, but if this is an issue go for a smaller device as this is big and heavy due to the amount of juice it holds.</div><div><br></div><div>So do I recommend one? Would I buy another? The answer is yes and as my other power packs pack up I will be replacing them with more of these. They also come with a good warranty if you register on their site and good customer services so you know that if there was a problem which I doubt you will have, that it will be sorted fast.</div><div><br></div>Anonymoushttp://www.blogger.com/profile/01619753419899991396noreply@blogger.com0tag:blogger.com,1999:blog-5629279720732787189.post-9462315102222934962015-02-13T01:01:00.001+00:002015-02-13T01:01:09.198+00:00Raspberry pi robot and camera<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKg3kuD4kOP47JL-h73a-Nk_lycaNHwK5OSzuLRAX5gz-MuzDkv9rxUqdMDzuHQ8pZ3LOc4bpdpMMEpMVS8qkuNnKHJhfuuf3AhIgbPxKj-uNvVi2nqSbKZs5vZmmPaDVbJeIjUAI82vIG/s640/blogger-image-861689928.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKg3kuD4kOP47JL-h73a-Nk_lycaNHwK5OSzuLRAX5gz-MuzDkv9rxUqdMDzuHQ8pZ3LOc4bpdpMMEpMVS8qkuNnKHJhfuuf3AhIgbPxKj-uNvVi2nqSbKZs5vZmmPaDVbJeIjUAI82vIG/s640/blogger-image-861689928.jpg"></a></div><div class="separator" style="clear: both;"><br></div><div class="separator" style="clear: both;">I had bought the parts a while back which consisted of a makeblock starter kit and a few extra bits n pieces from the little British robot company and also a control board from Dawn Robotics plus their pan/tilt camera kit. Dawn robotics also do a raspberry pi image for free or for a small fee the image already on a sd card.</div><div class="separator" style="clear: both;"><br></div><div class="separator" style="clear: both;">So after many months of screwing and unscrewing, adding and unadding I got to the stage I could actually test it tonight.</div><div class="separator" style="clear: both;"><br></div><div class="separator" style="clear: both;"><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">http://www.youtube.com/watch?v=lBs85aJMST0</span></div><div class="separator" style="clear: both;"><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"><br></span></div><div class="separator" style="clear: both;"><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">It's very simple to set up and I'm still yet to add infra red light to work in conjunction with the camera. I currently have a pi supply bright light kit but need to figure out the wiring so I can get it working.</span></div>Anonymoushttp://www.blogger.com/profile/01619753419899991396noreply@blogger.com0tag:blogger.com,1999:blog-5629279720732787189.post-47968568225012917442015-01-13T15:51:00.001+00:002015-01-13T18:38:46.294+00:004 boards for the Raspberry Pi<div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqP2i81Oe7dX0AThQWgve7g-kqxer_Z5Bsu1a4QxoTynlTjAcbECdl_cs8hawoGOFpiVsE-4msgSMmRDcNTtmv6T0M4MtW3W-pdjGJ7CAgXxiNRmkaDR1-pSUaKu0sQ9lRAbTEv0CKdU2l/s640/blogger-image--1417361539.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjqP2i81Oe7dX0AThQWgve7g-kqxer_Z5Bsu1a4QxoTynlTjAcbECdl_cs8hawoGOFpiVsE-4msgSMmRDcNTtmv6T0M4MtW3W-pdjGJ7CAgXxiNRmkaDR1-pSUaKu0sQ9lRAbTEv0CKdU2l/s640/blogger-image--1417361539.jpg"></a></div>Whilst stocks last there is an offer for all four MyPiFi boards on eBay £18 delivered (uk) or plus delivery (row) they are for the LED board, LCD add on module, 10 LED board and the I/O port expander board giving your Pi more inputs and outputs.<div><div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGDtB_NnhiIt4zuyqtocoL5op02v7mdqDWoY4cBnu7R00RJZS1uVNX5VWyaZ9EjsSyt4eyzMbSbf7mUBQbFNz-A6y4j0YJmG1sBcoyZAjzmyq2XFHlIJ7wV_3G8MO8Oc8JpSbutlHrz2tj/s640/blogger-image--414181040.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGDtB_NnhiIt4zuyqtocoL5op02v7mdqDWoY4cBnu7R00RJZS1uVNX5VWyaZ9EjsSyt4eyzMbSbf7mUBQbFNz-A6y4j0YJmG1sBcoyZAjzmyq2XFHlIJ7wV_3G8MO8Oc8JpSbutlHrz2tj/s640/blogger-image--414181040.jpg"></a></div><br></div><div>Available on eBay for a short time when they have gone they won't be re added</div><div><br></div><div>http://pages.ebay.com/link/?nav=item.view&alt=web&id=181629776059 </div><div><br></div><div><div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4gCPzQGK-2i_6mU23Djf_uYNgDOXB2l9FILYVMSJsxbiyw-p8cgNKOKdw48kermBH-MiN80plpfer8C7VeiFn1yvMZ7TuUT-J-UnKRjPCMU4QvOQVRYFUi_kNy-cXUgqaViXxxrYT9DTM/s640/blogger-image--973758991.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4gCPzQGK-2i_6mU23Djf_uYNgDOXB2l9FILYVMSJsxbiyw-p8cgNKOKdw48kermBH-MiN80plpfer8C7VeiFn1yvMZ7TuUT-J-UnKRjPCMU4QvOQVRYFUi_kNy-cXUgqaViXxxrYT9DTM/s640/blogger-image--973758991.jpg"></a></div><div class="separator" style="clear: both;"><div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqAfoP_GlrZjJUh6fmRjh4MMpDmm_8impCygULhMGtaja4Rvl-dsigXlZhsX2wSUxWwhmSWgyWslrSU2PsfJy22H9hctD01agN_uz5Q_IRTxNjR8oslDKYI70pkSAmuC21sWkK8666Y-E4/s640/blogger-image-1577116753.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqAfoP_GlrZjJUh6fmRjh4MMpDmm_8impCygULhMGtaja4Rvl-dsigXlZhsX2wSUxWwhmSWgyWslrSU2PsfJy22H9hctD01agN_uz5Q_IRTxNjR8oslDKYI70pkSAmuC21sWkK8666Y-E4/s640/blogger-image-1577116753.jpg"></a></div><br></div>Assembly guides and demo codes can be found on www.mypifi.net</div>Anonymoushttp://www.blogger.com/profile/01619753419899991396noreply@blogger.com0tag:blogger.com,1999:blog-5629279720732787189.post-9786711051363901122015-01-11T20:24:00.001+00:002015-01-11T20:40:04.239+00:0032x32 rgb display with a raspberry PiNever really got that far with a 32x32 display, ok I followed Raspberrypi-spy s guide and got it to display things but wanted to try more out like Peter Onions excellent RGB demo.<div><div class="separator" style="clear: both;"><a href="https://lh5.googleusercontent.com/-NP4L-Z-FH30/VLLb9PImPnI/AAAAAAAABx0/Ib50o40ln_U/s640/blogger-image--1694197543.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://lh5.googleusercontent.com/-NP4L-Z-FH30/VLLb9PImPnI/AAAAAAAABx0/Ib50o40ln_U/s640/blogger-image--1694197543.jpg"></a></div><br></div><div>So after running into difficulties compiling the c code from peteronion.org.uk/PiProgs I emailed Peter, I needed to add -lm to the end of the line and bingo worked straight away. The demos that Peter has included include Tetris, Clock, game of life, Squares and kaleidoscope and shows how a simple screen can be made to do literally anything.</div><div><div class="separator" style="clear: both;"><a href="https://lh5.googleusercontent.com/-QFS0BvA6Ak0/VLLb8DK-FOI/AAAAAAAABxs/IkbWnA6V4pE/s640/blogger-image--856586915.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://lh5.googleusercontent.com/-QFS0BvA6Ak0/VLLb8DK-FOI/AAAAAAAABxs/IkbWnA6V4pE/s640/blogger-image--856586915.jpg"></a></div><div class="separator" style="clear: both;"><div class="separator" style="clear: both;"><a href="https://lh6.googleusercontent.com/-HK_2-jpF9DY/VLLb6rCxh9I/AAAAAAAABxk/tyUSSiE3m8A/s640/blogger-image--1982704788.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://lh6.googleusercontent.com/-HK_2-jpF9DY/VLLb6rCxh9I/AAAAAAAABxk/tyUSSiE3m8A/s640/blogger-image--1982704788.jpg"></a></div><br></div><br></div><div>I've since seen pictures over the tinternet showing the same displays being used to show pictures and framed in a frame too.</div><div><div class="separator" style="clear: both;"><a href="https://lh4.googleusercontent.com/--sCv01jcqcY/VLLb5eLwTgI/AAAAAAAABxc/8sfkQerEhIU/s640/blogger-image--697831816.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://lh4.googleusercontent.com/--sCv01jcqcY/VLLb5eLwTgI/AAAAAAAABxc/8sfkQerEhIU/s640/blogger-image--697831816.jpg"></a></div><br></div><div>Many ideas and possibilities for this great rgb device.</div><div><br></div><div><div class="separator" style="clear: both;"><a href="https://lh6.googleusercontent.com/-RmxSJdhrXqM/VLLb32eUqQI/AAAAAAAABxU/MBT55OpGV40/s640/blogger-image-1403364394.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://lh6.googleusercontent.com/-RmxSJdhrXqM/VLLb32eUqQI/AAAAAAAABxU/MBT55OpGV40/s640/blogger-image-1403364394.jpg"></a></div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>MyPiFi add on boards for Raspberry Pi http://pages.ebay.com/link/?nav=item.view&alt=web&id=181629776059 </div>Anonymoushttp://www.blogger.com/profile/01619753419899991396noreply@blogger.com0tag:blogger.com,1999:blog-5629279720732787189.post-39522492041014455892015-01-11T17:06:00.001+00:002015-01-11T20:38:54.914+00:00Home automation with energenieA long time ago I reviewed the energenie Pi kit consisting of a Pi add on board and two sockets. Since then I have used ssh to ssh to a Pi to run Amy Mathers Python script that she infamously wrote on work experience at Raspberry Pi Towers.<div><br></div><div>Now since then I decided to see what else I can do and found a great tutorial <a href="http://www.penguintutor.com/raspberrypi/pi-power" style="font-family: 'Helvetica Neue Light', HelveticaNeue-Light, helvetica, arial, sans-serif;">http://www.penguintutor.com/raspberrypi/pi-power</a> and followed it. Using a model a with wifi I have a device that should it go down I can ssh into to restart, but more importantly I can use a web browser and enter the Pi IP address and get buttons to choose what I want.</div><div><br></div><div><div class="separator" style="clear: both;"><a href="https://lh6.googleusercontent.com/-p6rC6mvGsGg/VLKtnxHg9RI/AAAAAAAABw8/z4N7GdJvL3Y/s640/blogger-image-1115918397.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://lh6.googleusercontent.com/-p6rC6mvGsGg/VLKtnxHg9RI/AAAAAAAABw8/z4N7GdJvL3Y/s640/blogger-image-1115918397.jpg"></a></div><br></div><div>The problem now is I want more and more of these sockets as the Pi is about to automate my house.</div><div><br></div><div><div class="separator" style="clear: both;"><a href="https://lh6.googleusercontent.com/-ReawH9W9-bY/VLKtpM1DFyI/AAAAAAAABxE/nMNpnp7QpBI/s640/blogger-image--148564587.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://lh6.googleusercontent.com/-ReawH9W9-bY/VLKtpM1DFyI/AAAAAAAABxE/nMNpnp7QpBI/s640/blogger-image--148564587.jpg"></a></div><div class="separator" style="clear: both;"><br></div><div class="separator" style="clear: both;">Whilst I've never had a problem with the range, I've added 135mm of wire to the antenna which has a nice little hole to solder some wire to, this will boost the range so I should have no problems hitting anywhere around the house.</div><div class="separator" style="clear: both;"><br></div><div class="separator" style="clear: both;">Feel free to have a go yourself, a starter kit of one energenie add on board and two sockets starts at £19.99 with additional sockets £10 each or 3 for £20 and the big pack of 4 for £25</div><div class="separator" style="clear: both;"><br></div><div class="separator" style="clear: both;">Now I'm off to make that tea as the kettle has just finished boiling.</div><br></div><div><br></div><div><br></div><div><br></div><div>Advert: MyPiFi Boards http://pages.ebay.com/link/?nav=item.view&alt=web&id=181629776059 </div>Anonymoushttp://www.blogger.com/profile/01619753419899991396noreply@blogger.com0tag:blogger.com,1999:blog-5629279720732787189.post-79600484746418862302015-01-10T22:35:00.001+00:002015-01-10T22:35:36.548+00:00Snake with a Raspberry Pi and Unicorn HatSomeone else with a great name ;) has written code to run the old Nokia phone game snake on the unicorn hat. Paul Brown who's GitHub link is <a href="https://github.com/PaulBrownMagic/python/blob/master/unicornsnake.py">https://github.com/PaulBrownMagic/python/blob/master/unicornsnake.py</a> the controls are the arrow keys, certainly see this being popular at future raspberry jams<div><br></div><div><div class="separator" style="clear: both;"><a href="https://lh4.googleusercontent.com/-2N9i3W8eCdM/VLGpNrtY6ZI/AAAAAAAABws/BeU-Z7lujM0/s640/blogger-image--304949420.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://lh4.googleusercontent.com/-2N9i3W8eCdM/VLGpNrtY6ZI/AAAAAAAABws/BeU-Z7lujM0/s640/blogger-image--304949420.jpg"></a></div><br></div>Anonymoushttp://www.blogger.com/profile/01619753419899991396noreply@blogger.com0tag:blogger.com,1999:blog-5629279720732787189.post-84754906031287337732015-01-04T07:27:00.001+00:002015-01-04T07:29:55.670+00:00MyPiFi 4 add on boards packI forgot how many extra boards I have paid for over my last few kickstarters, so after taking stock of what I had left and needing to make space for future projects I have decided to place up a four board offer on eBay for £18 including free uk postage and packing, saving buyers £10 off the usual price.<div><br></div><div>The boards included are:</div><div><br></div><div>The LED board, three LEDs and a button with assembly instructions and demo code on MyPiFi.net</div><div><br></div><div><div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUzGXAxaNrEbtFss8oP9EjMaEXwTBSJjEy05YzGcQtZZZn6N9zNmnfjM-yKKAHhVSJ_q0iNkpC7Ec4pXXvm6w_Zy0FEPKdR2afxvF23m4YZqsWrKiJxHbaW18WRi89c70fMDgAoTvboo6P/s640/blogger-image--164787408.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUzGXAxaNrEbtFss8oP9EjMaEXwTBSJjEy05YzGcQtZZZn6N9zNmnfjM-yKKAHhVSJ_q0iNkpC7Ec4pXXvm6w_Zy0FEPKdR2afxvF23m4YZqsWrKiJxHbaW18WRi89c70fMDgAoTvboo6P/s640/blogger-image--164787408.jpg"></a></div><div class="separator" style="clear: both;"><br></div><div class="separator" style="clear: both;">The second board is the LCD add on module so you can add any hd44780 compatable board eg 16x2 or 20x4 LCD to your project and again comes with assembly guide and demo code to get you started, all you need is to buy a LCD screen to plug into it.</div><div class="separator" style="clear: both;"><br></div><div class="separator" style="clear: both;"><div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsoYv6BFgS_YkW5m9Fjgscv7jWg4YEEH1px-MEMEiCdKMiKoM9P5u4aTsfWVxnu3NDiFtqMmmJBxk2nuzTH0tu9sfywYEOxDeL0PB3wdr5eiwammBYBZxNeqtjGUyeat2if-loxxO46lFW/s640/blogger-image-2009797969.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsoYv6BFgS_YkW5m9Fjgscv7jWg4YEEH1px-MEMEiCdKMiKoM9P5u4aTsfWVxnu3NDiFtqMmmJBxk2nuzTH0tu9sfywYEOxDeL0PB3wdr5eiwammBYBZxNeqtjGUyeat2if-loxxO46lFW/s640/blogger-image-2009797969.jpg"></a></div><br></div><div class="separator" style="clear: both;">The third board is the 10 LED board, this can be used with the Raspberry Pi or any other GPIO board like arduino with jumper wires or with a port expander board like my forth board.</div><div class="separator" style="clear: both;"><br></div><div class="separator" style="clear: both;"><div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqFTKNxFjaJ9GbJ6ConXHpr9zW72dY6nY1qecRYaWsWwQc3YkORMXuNrlE7OJvcqjKY2zw6dU3m89nsZXEPq5Gmu9GUqzDhc_FKeFVbKaJWJ7UPujTNWFjTGHBuYBNrq6GJvaQJtcVCe6L/s640/blogger-image--1637228799.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiqFTKNxFjaJ9GbJ6ConXHpr9zW72dY6nY1qecRYaWsWwQc3YkORMXuNrlE7OJvcqjKY2zw6dU3m89nsZXEPq5Gmu9GUqzDhc_FKeFVbKaJWJ7UPujTNWFjTGHBuYBNrq6GJvaQJtcVCe6L/s640/blogger-image--1637228799.jpg"></a></div><div class="separator" style="clear: both;"><br></div><div class="separator" style="clear: both;">Then we have the forth board, this is an in/out port expander for controlling things like LEDs via the SCL and SDA pins freeing up many of the other GPIO pins so you can add more to your projects and like with all my add on boards comes with extended GPIO headers so you can still use the GPIO pins.</div><div class="separator" style="clear: both;"><br></div><div class="separator" style="clear: both;"><div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjRIvL37XPE3-hxK7yUEsJnXZb6ZnusqVqQnmN4eYIHtYnxgikxA7jY71QYkC5-07T_wZ7OIJQyMMGubZU3sopNTdTzfYPwWNRDTjtUrHrE-S9zcIcZRO_J2tcCSxrM2slD4qjoehDDl7M/s640/blogger-image--819125721.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjRIvL37XPE3-hxK7yUEsJnXZb6ZnusqVqQnmN4eYIHtYnxgikxA7jY71QYkC5-07T_wZ7OIJQyMMGubZU3sopNTdTzfYPwWNRDTjtUrHrE-S9zcIcZRO_J2tcCSxrM2slD4qjoehDDl7M/s640/blogger-image--819125721.jpg"></a></div><br></div><br></div><div class="separator" style="clear: both;">All common kit form starting at £6 each or all four for £18 on eBay. http://pages.ebay.com/link/?nav=item.view&alt=web&id=181629776059 </div><div class="separator" style="clear: both;"><br></div><div class="separator" style="clear: both;">Here are just a few people showing theirs on Twitter.</div><div class="separator" style="clear: both;"><br></div><div class="separator" style="clear: both;"><div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPBawvVv9DSfi8abSaT5AaVUAecEvh5SrDZHNMaEoJCdVU-U9XMxWk6xIwrV7pVWcBxHlmSxlPnrIyC7wQW7VPVbpJJ20saPfkBlK4iaIBecxY-3X43EQQHbOO6fbR5e9xpM56YgDFwBM9/s640/blogger-image-474039695.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPBawvVv9DSfi8abSaT5AaVUAecEvh5SrDZHNMaEoJCdVU-U9XMxWk6xIwrV7pVWcBxHlmSxlPnrIyC7wQW7VPVbpJJ20saPfkBlK4iaIBecxY-3X43EQQHbOO6fbR5e9xpM56YgDFwBM9/s640/blogger-image-474039695.jpg"></a></div><div class="separator" style="clear: both;"><div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKOa0WCcznUKsFGGRIcSKU16TVPgA_ffpnu0PGH_J6PN2mrYx7an8EuRZZDX2HBQCK-NQfrGlQCuWPKlFRTrZJyJ_qkouZQKFmkZmROHKJ6DbdDYDKMAQ-ez4pTZcUbvyUZJoCrAOdEPRO/s640/blogger-image--119323703.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKOa0WCcznUKsFGGRIcSKU16TVPgA_ffpnu0PGH_J6PN2mrYx7an8EuRZZDX2HBQCK-NQfrGlQCuWPKlFRTrZJyJ_qkouZQKFmkZmROHKJ6DbdDYDKMAQ-ez4pTZcUbvyUZJoCrAOdEPRO/s640/blogger-image--119323703.jpg"></a></div><div class="separator" style="clear: both;"><div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk1wqVnI7Xge2cE2MzsxKX0UO3AmTGC1DrAX7AX-yLQUnB_9dBBOb02Yek445jZVAeydU89dNEX81FMI1lEx0vz9eAxM2_gko-GzGc5gfvUWoz9D78WtID9AWebs0Sm-tuivFQiMDYPfa7/s640/blogger-image-1474075218.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk1wqVnI7Xge2cE2MzsxKX0UO3AmTGC1DrAX7AX-yLQUnB_9dBBOb02Yek445jZVAeydU89dNEX81FMI1lEx0vz9eAxM2_gko-GzGc5gfvUWoz9D78WtID9AWebs0Sm-tuivFQiMDYPfa7/s640/blogger-image-1474075218.jpg"></a></div><br></div>So what you waiting for? Great way to learn on the Raspberry Pi with room to keep building and building as you get better and more confident with the Pi.</div><div class="separator" style="clear: both;"><br></div><div class="separator" style="clear: both;">I also do discounts to code clubs and Pi shops if you are ordering in bulk too, just contact me for further details.</div><br></div><br></div>Anonymoushttp://www.blogger.com/profile/01619753419899991396noreply@blogger.com0tag:blogger.com,1999:blog-5629279720732787189.post-24935660192336150242015-01-03T19:01:00.001+00:002015-01-03T19:01:56.928+00:00Testing the Pi and Bash add on moduleBeen testing this out for a while now and firstly recommend using a new image so nothing on your current image can interfere with the add on board.<div><br></div><div>The add on board comes with these functions:</div><div><br></div><div><ul><li><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Traffic Light LEDs</span></li><li><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">5 Push Button Switches</span></li><li><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Liquid Crystal Display (LCD) with 2 lines of 16 characters</span></li><li><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Software switchable LCD backlight</span></li><li><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Thermometer</span></li><li><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">8 configurable digital inputs/outputs (I/Os)</span></li><li><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">8 analogue inputs</span></li><li><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Header for connecting additional I2C devices</span></li><li><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Can be powered from external 5V supply</span></li></ul><div><span style="-webkit-text-size-adjust: auto;"><div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_EFTYSCj6NQVUVn_WMLwyn91zvGZ5gOn7Hq3V5wWxOpvUBtoWXhfoZQ84Z2a44diwzA0hd7eePQdE6F-UH2oqpOK_A8CY-yDH0Vb8qmMC2Cq7q6CHS1V2j3lnqKwI2aRsJXS8HWYc-KOH/s640/blogger-image--1507681364.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_EFTYSCj6NQVUVn_WMLwyn91zvGZ5gOn7Hq3V5wWxOpvUBtoWXhfoZQ84Z2a44diwzA0hd7eePQdE6F-UH2oqpOK_A8CY-yDH0Vb8qmMC2Cq7q6CHS1V2j3lnqKwI2aRsJXS8HWYc-KOH/s640/blogger-image--1507681364.jpg"></a></div><br></span></div></div><div><span style="-webkit-text-size-adjust: auto;"><br></span></div><div><span style="-webkit-text-size-adjust: auto;">Assembly was quick, but felt strange with the way the board fitted to the Pi, in other words it didn't sit flush like other boards, but has been designed to overhang the Pi.</span></div><div><span style="-webkit-text-size-adjust: auto;"><br></span></div><div><span style="-webkit-text-size-adjust: auto;"><div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkdADmVWBGHAME7ytJQUrTLWfPNeOEakIsCO2E_ZukERT3n5TDZTy_6ISgvqt4TrdT_FlvzWSUDK9_vXO50J9RKDnqAbeTQ8nBHbyWLGM7nI_F_1bgxM2G_tWgRGjJvooP5IOTlSq-M1Rw/s640/blogger-image--1870139821.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkdADmVWBGHAME7ytJQUrTLWfPNeOEakIsCO2E_ZukERT3n5TDZTy_6ISgvqt4TrdT_FlvzWSUDK9_vXO50J9RKDnqAbeTQ8nBHbyWLGM7nI_F_1bgxM2G_tWgRGjJvooP5IOTlSq-M1Rw/s640/blogger-image--1870139821.jpg"></a></div><div class="separator" style="clear: both;"><br></div><div class="separator" style="clear: both;">With the demo script that can be downloaded from the site </div></span><a href="http://pinventor.co.uk/piandbash" style="font-family: 'Helvetica Neue Light', HelveticaNeue-Light, helvetica, arial, sans-serif;">http://pinventor.co.uk/piandbash</a> I was able to straight away test the buttons, leds, temperature gauge and the lcd screen.</div><div><br></div><div><div class="separator" style="clear: both;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeGpLEnk5uuZcleLgt3P4h8crvXX12oUbgWRZZqXFVIPoDHpwcCOCSWRhBtuQ3Uy98Jmfo6TBFg-XC7nvxeWoeutgifqu8gonfeX07FMOl0wxoPCNL71EuVcY355D9qBT-cIWt-_7tMisH/s640/blogger-image-810088896.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgeGpLEnk5uuZcleLgt3P4h8crvXX12oUbgWRZZqXFVIPoDHpwcCOCSWRhBtuQ3Uy98Jmfo6TBFg-XC7nvxeWoeutgifqu8gonfeX07FMOl0wxoPCNL71EuVcY355D9qBT-cIWt-_7tMisH/s640/blogger-image-810088896.jpg"></a></div><div class="separator" style="clear: both;"><br></div><div class="separator" style="clear: both;">The huge list of projects that can be achieved with this add on board include:</div><div class="separator" style="clear: both;"><br></div><div class="separator" style="clear: both;"><ul><li><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Traffic Light Sequence</span></li><li><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Room Thermometer</span></li><li><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">RSS News Ticker</span></li><li><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Model Railway Points Controller</span></li><li><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Internet Radio Alarm Clock</span></li><li><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Weather Station</span></li><li><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Network Monitor</span></li><li><span style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);">Bedroom Burglar Alarm</span></li></ul><div><span style="-webkit-text-size-adjust: auto;"><br></span></div><div><span style="-webkit-text-size-adjust: auto;">So far I have found averagemanvspi has done the Internet radio, but piandbash do have a forum on their site should you fall into any problems and Rob Boyle the creator is also very helpful should you approach him direct.</span></div><div><span style="-webkit-text-size-adjust: auto;"><br></span></div><div><span style="-webkit-text-size-adjust: auto;">There will be some tutorials soon to get you going with all the functions, although the demo code is a great starter to get the feel.</span></div><div><span style="-webkit-text-size-adjust: auto;"><br></span></div><div><span style="-webkit-text-size-adjust: auto;">While it seems to be expensive at £23 from modmypi </span><a href="https://www.modmypi.com/raspberry-pi-expansion-boards/pibash-add-on-board" style="font-family: 'Helvetica Neue Light', HelveticaNeue-Light, helvetica, arial, sans-serif;">https://www.modmypi.com/raspberry-pi-expansion-boards/pibash-add-on-board</a> you need to remember you have several boards plugged into this one board, leds, lcd, I/o expander, buttons and temperature module so five boards into one and that's just a quick look over it, I expect with the functions combined you could claim it to have more module boards included.</div><div><br></div><div>So value for money, I have experience of putting out add on boards with my own MyPiFi brand and can say price wise it's cheap, no huge mark ups and you certainly couldn't get the bits yourself any cheaper as the major cost factor is the PCB.</div><div><br></div><div>Perhaps this is what the gertboard should have been?</div></div><br></div>Anonymoushttp://www.blogger.com/profile/01619753419899991396noreply@blogger.com0tag:blogger.com,1999:blog-5629279720732787189.post-73227271928039185142014-12-31T20:08:00.001+00:002014-12-31T20:16:48.364+00:00NYE countdown with a Unicorn and pitoday I came across a brilliant post on twitter from @rdhayler who has written some coding for the Pimoroni Unicorn Hat add on board to scroll text and now one better, a countdown.<br>
<br>
More can be found out from his blog page at http://richardhayler.blogspot.co.uk/2014/12/new-year-countdown-with-unicornhat.html<div><br></div><div><div class="separator" style="clear: both;"><a href="https://lh4.googleusercontent.com/-bISLZY-FhHg/VKRYYnQBkSI/AAAAAAAABuA/YoiFfpum6E8/s640/blogger-image--164637476.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://lh4.googleusercontent.com/-bISLZY-FhHg/VKRYYnQBkSI/AAAAAAAABuA/YoiFfpum6E8/s640/blogger-image--164637476.jpg"></a></div><br>
<br>
<br></div>Anonymoushttp://www.blogger.com/profile/01619753419899991396noreply@blogger.com0