I2C activation on raspberry PI B+ and 2

The new version of kernel now activate the device-tree standard, it means that instead of having all module activated by default with some stopped by a blacklist system, now, all are disable and activated only when described in a device tree.

Device tree details the system architecture and dependencies following configuration files. The device tree can be owned by the shield itself in an attached eprom.

As a consequence, now, i2c / spi are not activated by default. So if you need to activate it on startup. For this, edit /boot/config.txt and add line at the end like :

dtparam=i2c_arm=on   # for i2c 1
dtparam=i2c_vc=on    # for i2c 0
dtparam=spi=on
dtparam=i2s=on

dtparam=i2c_arm=on,i2c_vc=on

Then reboot

RFRPI – wiringPi delayMicrosecond problem with RPI 2+ and fix

I fixed tonight a problem with rfrpi and Raspberry 2+ ; it seems that wiringPi 2.25 have a bug with delayMicroseconds() function that works perfectly when less than 99us and do not work correctly with larger values.

Waiting for the fix the code have been updated to work correctly with RPI2+ ; so please if you are using the shield with RPI2+, update the rfrpi code from bitbucket.

Running sigfox with a Raspberry-Pi

Sigfox on Raspberry Pi

Sigfox on Raspberry Pi

Based on my sigfox multi-board shield, it is possible to hack sigfox with a raspberry pi. The standard telecom Design firmware allow to use it as a modem. The raspberry Pi just have to send the expected AT commands

 

 

 

Continue reading

RFRPI works certified with Raspberry PI 2+ for RF433

Raspberry Pi B+ - RFRPI Shield

Raspberry Pi B+ – RFRPI Shield

I’m proud to announce the compatibility of the RFRPI shield (RF433 transceiver for RPI) with the new Raspberry PI 2+

To get all detailed information about this shield you can read this post

You must use wiringPi >= 2.25 for RPI2+ compatibility.

SWD programming using a RaspberryPi

I previously write this post on how to use a BeagleBoneBlack as a JTAG (SWD) programmer. It was fun but really slow. I port my code on RaspberryPI and now what was taken 5-8 hours is a couple of minutes.

To connect the SWD connector to the PI use the following schema

Connect SWD to RaspberryPi

Connect SWD to RaspberryPi

I use this peace of code to reflash my TD1204 and TD1208 based both on EFM32 when bricked after unsuccessful update…

Here is the python file to interact with SWD : https://github.com/disk91/PySWD/blob/master/RpiGPIO.py

I hop it will be soon integrated in the main PySWD project as the previous one.

You should check or modify flashEFM32.py file

import array

from PirateSWD import *
from RpiGPIO import *
from SWDCommon import *

[...]

def main():
    busPirate = RpiSWD("", vreg = True)
    debugPort = DebugPort(busPirate)
    efm32     = EFM32(debugPort)

To run the Flash program, just launch

# ./flashEFM32.py ../myProgram.bin

 

RFRPI shield V1.2 released for RPI B+

Raspberry Pi B+ - RFRPI Shield

Raspberry Pi B+ – RFRPI Shield

I’m proud to announced the Raspberry PI shield for high quality RF433 have just been released to be compatible with Raspberry Pi model B+ (and A+).

The shield works exactly the same with the RFRPI lib. It is a little bit mode compact and modified to fit the usual cases.

You can contact me for orders.

SigFox arduino Raspberry PI hacking board

sigfox hack board

sigfox hack board

I assume you know a little bit who I am and what I’m doing, I’m not the one to by > 100€ to buy a one shot development board kit to test & hack a device like the Telecom Design chip. So basically I built my own with the objective to work with multiple configuration.

My “cahier des charges” was to make a board able to be installed as a dauther board on a raspberry PI,  able to support an arduino, able to run autonomously and being able to own a TD1204 as a TD1208.

It was a huge work to route it and I must recognize that it do not have all the GPIO connected as I expected but it exists, it works and it help me to build my first SigFox prototypes with success.

So, now, I propose to distribute this board to those of you looking for a such swiss knife.

Continue reading

Create a 3G Pir sensor with a raspberry Pi

Raspberry Pi 3G PIR sensor

Raspberry Pi 3G PIR sensor

Basically, it is something I was looking to do with SigFox, but unfortunately yesterday I bricked my chip because of a wire unsoldered right in the middle of the upload of a new firmware version … By the way, I’ll do it later once it will be fixed.

So I had to built it on a raspberry as a short term solution. Read next to get details

 

Continue reading