Also in #raspberrypi today: learning about I2C communications. Tips+resources:
sudo i2cdetectbefore and after plugging it in and see which address changed
i2cget, they’re super useful for poking around in I2C devices
I cobbled together a #python class for communicating with the ADXL345 by cross-referencing between the Arduino library for that chip and Adafruit’s I2C library, only to find that someone else had done so only hours earlier!
Successfully got both my RPis automatically connecting to WiFi and serving HTTP and SSH over @pagekite. If you’re having trouble setting up SSH over Pagekite, using Interactive Testing is super useful. Turns out I had typed my secret in wrong — oops!
At least I can not run them headless now and not keep lugging monitor, keyboard etc. into the kitchen (only source of WiFi strong enough for tiny antenna to pick up). Better for my own sanity as well as my housemates’.
Otherwise ugly and cumbersome rats nests of cables become suddenly beautiful with a #raspberrypi in the middle.
If you’re getting weird errors when trying to copy #raspberrypi NOOBS files onto your SD card on Mac OS X, try copying the files one by one. Sounds stupid (and is stupid) but just worked for me.
If you’re using a Humble Pi #raspberrypi breakout board and controlling the GPIOs via the
RPi.GPIO module, the labels on the board correspond to the BCM pin numbers, not the BOARD numbers. Your setup call should look like
GPIO.setmode(GPIO.BCM), then calling
GPIO.setup(4, GPIO.IN) GPIO.output(4, True)
will raise the level of the pin marked
G04 on the Humble Pi board.
Posting a note from my Raspberry Pi.
Setting up my Raspberry Pi. Composite output didn’t work so bought a HDMI cable and now the process seems pretty seamless.
Ordered a bunch of #raspberrypi stuff — let’s create the future of musical instruments and personal devices.