Makefile quick how-to

Many years ago, I was considering myself as a specialist of Makefiles … But now, I know that Makefile science is not like bicycle and you may loose all this knowledge as soon as you start to java Code …

So I’ve to go back to Makefile school again and here are some of my googling notes on this topic for my own remembers and why not yours !

 

Continue reading

Program Yabbas (AtMega328p) Over FTDI cable

The last step to use a ATMega328P / Yabbas from the Arduino IDE is to plug it with a FTDI cable (TTL RS232 over USB). Personnally, I’m using the TTL-232R-3V3 to do it. The first step was to create an adaptor to transform this cable output to the YABBAS pinout.

Continue reading

How to burn AtMega328P arduino bootloader on Yabbas

Recently I made a Yabbas arduino system ; this is a low cost arduino (7€) you can DIY. I’ve made it with a group of people from my city (look here) and my daughter. During this session we have finished the prototype but not had the time to flash the AtMega328P.

Now this is done using my Arduino Leonardo as an ISP programmer. I’ll detail the way I’ve done it here

Continue reading

Oregon Scientific sensors with Raspberry PI

After mixing different source of information, I was able to decode some Oregon Scientific sensors to get Temperature and Humidity indication, over the air, on 433.92MHz, with a Raspberry PI system. This article gives some details of this adventure …

You follow this implementation at your own risk…

If you are interrested in this article, you could also take a look here where you can find a RF433 shield and the associated code

 

Continue reading

RF433 – different transmitters test

After having test some receiver, naturally, I’ve tested some transmitters, the objective is the same : get the best coverage in the same condition : I would say poor conditions. Lots of wires going every where and an antenna make with a simple 17.3cm wire. As expected, results vary regarding the emitter used. Reed more to get details.

Continue reading

RF433 – different receiver in test

I’ve just done some test on different RF433 receivers, from the classical really low cost system to some more expensive systems. The test environment was always the same : a dirty test board with lots of wire connections everywhere and an antenna made with a 17.3 cm wire. The conditions are poor but identical.

Then I move around my house and activate my alarm detector one after one and check if the system received it. Some detector are same floor, 1 floor or 2 floors distance, some are behind walls, distance vary from 5 to 20 meters in house.

The following results are the number of message received by the different receivers in this context. More you see, better it is.

Continue reading

Mosquitto C++ sample code to publish message

I start using mosquitto in a C++ program and I think documentation could be a little bit improved by some examples. To use mosquitto, there is a mosquittopp class acting as a wrapper on top of the mosquitto lib. Basically to create your own program you have to herit from that one and it is easy then.

Mosquitto lib can be managed as a thread or directly by calling the different sub function. In my point of view the thread approach is the better as otherwize you have to manage connection / disconnection manually. Mosquitto lib is then event managed, so you can subscribe to the callback event by surcharging the existing function.

Here is an exemple for a program just needing to publish messages to a broker.

Continue reading

Quickly create word list

An easy way to create a word list in bash :

for i in {a..z} ; do echo $i ; done
for i in {a..z}{{a..z},{0..9},-} ; do echo $i ; done
for i in {a..z}{{a..z},{0..9},-}{{a..z},{0..9},-} ; do echo $i ; done

The first line creates a list of one characters word from a to z

The second line creates a list of two characters word from aa to z- the alphabet for the second character can be a-z or 0-9 or –

The third line is a three character word list.