Showing posts with label Raspberry Pi. Show all posts
Showing posts with label Raspberry Pi. Show all posts

Sunday, November 27, 2016

Best way to transfer files to and from Raspberry Pi using Mac

I've been messing about with scp and ftp and now have stumped across a really happy solution for my Mac.

As I use Pycharm to develop my python files it is handy to have a method that uses finder to manage the files. Hard-core folks might be happiest with emacs and scp etc.

So, on the Raspberry Pi. run:
apt-get install netatalk

Then on the Mac in a terminal:

open afp://192.168.1.100 
replace the above ip address with that of your Raspberry Pi.


This will install Apple talk protocol onto the Pi which means that the Pi can appear in the Finder.



Friday, September 5, 2014

How to use Interupts in the Raspberry Pi

Excellent.
Just found this.
Now we can do hardware interrupts with the raspberry Pi. A world better than polling.

http://raspi.tv/2013/how-to-use-interrupts-with-python-on-the-raspberry-pi-and-rpi-gpio

How to connect Raspberry Pi to Mac using ethernet cable

Just a note because I did this once, then tried again and could quite remember it.

The default IP address of the Pi is 192.168.2.2

The default IP address of a home network is in the range: 192.168.0.nnn.

Open the Network preferences and set the IP address, subnet mask and DNS server as shown below.



The Airport WiFi is unchanged on my range and the Pi can share the internet via the Mac.

I have done this on Snow Leopard and Maverick. All good. The same should work on Windows I should imagine.

Use Ping in a terminal console window to check the network connection.

ping 192.168.2.2




Monday, August 25, 2014

Raspberry Pi - header pins and BCM pins

This image is taken from Meltwaters Raspberry PI Hardware.




import Rpi.GPIO as GPIO

#Set the GPIO to use the BCM device numbering
GPIO.setmode(GPIO.BCM)

#Set the GPIO to use the Rasperry Pi board header numbering.
GPIO.setmode(GPIO.BOARD)

BCM spec

The spec for the BCM2835 can be found here.


Sunday, June 30, 2013

Can I instal prolog on the Raspberry Pi

Yep.

sudo apt-get install swi-prolog

Is numpy included on the Raspberry Pi

Yes it is.
My Raspberry came with Raspbian Wheezy installed.

At the command line I started python,

then entered:

>>> from numpy import *
>>> a = arange(15).reshape(3, 5)
>>> a
 Which gave:
array([[ 0,  1,  2,  3,  4],
       [ 5,  6,  7,  8,  9],
       [10, 11, 12, 13, 14]])
>>> 

Saturday, June 29, 2013

Lego Nxt plug connector for Raspberry Pi

I haven't done this yet but I'm getting ready to. That is, connect the Raspberry Pi to the Lego NXT Mindstorm sensors.


I've a circuit schematic, but there's also some good info on how to adapt a regular telephone plug to use a NXT socket.
http://www.philohome.com/nxtplug/nxtplug.htm

You'll need to cut and file a bit.
How to connect the socket on the Pi for a NXT cable.

I haven't actually tested this yet. Maybe next weekend :)
My advice would be to use this as a starting off point and experiment.