tag:blogger.com,1999:blog-366864172024-03-13T11:53:26.789+00:00Marc AndreuCoding lifestyleMarc Andreuhttp://www.blogger.com/profile/03211119930348404381noreply@blogger.comBlogger79125tag:blogger.com,1999:blog-36686417.post-10995385184460373412015-06-18T21:43:00.001+01:002015-06-18T21:44:04.848+01:00JAVA Interactive Temperature mesurement system with Raspberry Pi
Hello there, this is it, last post of this series.
This last post will be about the last two lessons 31 and 32 of the world wide famous "Sunfounder 37 modules Sensor Kit for Raspberry Pi Model B". They are basically the same system with minor modifications. For full details about wiring the sensors, can be found as always in the original kit's documentation. It is easy and simple to Marc Andreuhttp://www.blogger.com/profile/03211119930348404381noreply@blogger.com0tag:blogger.com,1999:blog-36686417.post-19728706781679597762015-06-17T23:08:00.002+01:002015-06-18T21:44:40.942+01:00JAVA Mix sensors part III with Raspberry Pi
Hello there,
Here it goes, the last mix of lesson reviews of the "Sunfounder 37 modules Sensor Kit for Raspberry Pi Model B". The ultimate post will be about a mini project set up with few sensors, but that is material from the near future. For this post I will do a quick overview of the lessons 26 to 30. All the details about wiring the sensors and a little bit of definition of Marc Andreuhttp://www.blogger.com/profile/03211119930348404381noreply@blogger.com0tag:blogger.com,1999:blog-36686417.post-21807583917722551072015-06-16T21:10:00.002+01:002015-06-18T21:44:53.239+01:00JAVA Mix sensors part II with Raspberry Pi
Hello there,
Rotary encoder
Here it goes, few more exercises from the "Sunfounder 37 modules Sensor Kit for Raspberry Pi Model B". This post will be a quick review of the lessons 19, 20, 23, 24 and 25. These are a collection of simple sensors that work fine and with simple code.
Lets start with lesson 19 which is about the Rotary Encoder sensor. The exercise Marc Andreuhttp://www.blogger.com/profile/03211119930348404381noreply@blogger.com0tag:blogger.com,1999:blog-36686417.post-36283340387236465352015-06-15T19:59:00.003+01:002016-03-12T21:34:09.861+00:00JAVA DS18B20 sensor with Raspberry Pi
Hello there
This is a quick review of the lesson 18 of the "Sunfounder 37 modules Sensor Kit for Raspberry Pi Model B". This lesson is about 1-wire devices and in particular we will be reading values from the DS18B20 temperature sensor. The documentation of the kit is quite enough to get a basic introduction about what it is the 1-wire communication.
DS1B20 sensor
However in January 2015 Marc Andreuhttp://www.blogger.com/profile/03211119930348404381noreply@blogger.com0tag:blogger.com,1999:blog-36686417.post-39324292440091120882015-06-09T23:04:00.001+01:002015-06-18T21:45:18.821+01:00JAVA Photoresistor sensor with Raspberry Pi
Hello there, one more little hack.
Keyes GL55 Photoresistor
This is a quick post on how to read values from a photo resistor sensor using a Raspberry Pi and Pi4j. This exercise is based on the lesson 21 of the the "Sunfounder 37 modules Sensor Kit for Raspberry Pi Model B". The kit's documentation can be found here. The original C code of the lesson works fine but I am not sure Marc Andreuhttp://www.blogger.com/profile/03211119930348404381noreply@blogger.com0tag:blogger.com,1999:blog-36686417.post-12134382333426394452015-06-09T21:09:00.000+01:002015-06-09T21:09:07.873+01:00Git help
Hello there
This is a quick post about few resources for git help. This is a short collection of links but very powerful ones :-)
Official git documentation: http://git-scm.com/
Github related help: https://help.github.com/
Tour guide with hands on git: http://gitimmersion.com/
Quick git tips: http://gitready.com/
Visual git cheatMarc Andreuhttp://www.blogger.com/profile/03211119930348404381noreply@blogger.com0tag:blogger.com,1999:blog-36686417.post-1344684690662157052015-06-08T21:46:00.000+01:002017-08-17T05:02:56.315+01:00JAVA DHT11 sensor with Raspberry Pi
Hello there,
DHT11 sensor
This is the review on Lesson 22 DHT11 Sensor of the "Sunfounder 37 modules Sensor Kit for Raspberry Pi Model B". I have to admit that Java Native Interface is hard stuff. Even though with time and being stubborn enough you can do anything. I think the main issue with JNI is the lack of documentation. I may do a JNI tutorial later on. However for this Marc Andreuhttp://www.blogger.com/profile/03211119930348404381noreply@blogger.com0tag:blogger.com,1999:blog-36686417.post-60797665617801887102015-06-02T22:36:00.002+01:002017-08-17T05:05:25.967+01:00Pi4j button with ISR and debouncing
Hello there,
Switch button with LED indicator
I had a little bit of fun with the Interrupt Service Routine configuration in the Pi4J exercises that I am currently working on. I am translating from C code exercises into JAVA, just for fun, do not ask much more about the reasons ;-)
I found that an implementation of a button Interrupt Service Routine in Pi4j is not that straight forward Marc Andreuhttp://www.blogger.com/profile/03211119930348404381noreply@blogger.com0tag:blogger.com,1999:blog-36686417.post-87640837320091265072015-05-29T19:51:00.001+01:002017-08-17T05:10:16.004+01:00JAVA Switch sensors with Raspberry Pi
Hello there,
Passive buzzer
Here few more lesson reviews of the "Sunfounder 37 modules Sensor Kit for Raspberry Pi Model B". For some unknown reason there is not lesson 11 in the documentation so the reviews are for lessons 12, 13, 14, 15, 16 and 17. Lesson 12 is about buzzers and the other ones are different kinds of switch sensors, it means, sensors which can be used to switch circuits on Marc Andreuhttp://www.blogger.com/profile/03211119930348404381noreply@blogger.com0tag:blogger.com,1999:blog-36686417.post-30352983147095882522015-05-23T20:15:00.003+01:002017-08-17T05:12:40.586+01:00JAVA Analog - Digital Thermistors with Raspberry Pi
Hello there,
One more lesson from the "Sunfounder 37 modules Sensor Kit for Raspberry Pi Model B". This one was a bit more interesting. Digging down into what is a Thermistor.
Analogue Thermistor KY-013
This kit comes with two thermistor sensors, one is the module KY-013 and the other is a Thermistor Analog + Digital Electronic Temperature Sensor. There is a difference in the Marc Andreuhttp://www.blogger.com/profile/03211119930348404381noreply@blogger.com0tag:blogger.com,1999:blog-36686417.post-14517738286740815922015-05-22T23:15:00.001+01:002017-08-17T05:14:24.413+01:00JAVA Mix sensors with Raspberry Pi
Hello there,
RGB sufrace LED
Here it is the review for next lessons of "Sunfounder 37 modules Sensor Kit for Raspberry Pi Model B". The set of lessons from #02 to #09 are quite easy to code and play with. Just connecting the sensors to the pins 0 or 1 and to GND and 3.3V. No big deal on the hardware side.
shock sensor with RG LED
The software is simple and based on the same concepts Marc Andreuhttp://www.blogger.com/profile/03211119930348404381noreply@blogger.com0tag:blogger.com,1999:blog-36686417.post-17199095557103407112015-05-11T23:09:00.000+01:002015-06-18T21:47:13.688+01:00JAVA Digital Hall sensor with Raspberry Pi
Hello there,
Linear Hall sensor with comparator
All right this is the review on the next two lessons on linear hall sensors. Lesson 02 uses an analog linear hall sensor and an analog to digital conver IC ADC0832. The lesson 03 uses a linear hall sensor with added comparator, which allows some sensitivity tuning of the sensors by adjusting the potentiometer. The code for both lessons is the Marc Andreuhttp://www.blogger.com/profile/03211119930348404381noreply@blogger.com0tag:blogger.com,1999:blog-36686417.post-56212829257639503402015-05-11T20:52:00.000+01:002015-05-11T20:52:39.003+01:00JAVA: get a constant value by its name
Hello JAVA coders,
This is a quick note on a JAVA trick. Lets say we have a list of constants defined in a Class. Lets assume the code is already implemented and yes, there maybe better data structures to handle this situation with nice patterns etc... However, here we need a quick fix. We just need to get the value of one of this constants and we do not know the name of the Marc Andreuhttp://www.blogger.com/profile/03211119930348404381noreply@blogger.com0tag:blogger.com,1999:blog-36686417.post-86619439953316208752015-05-11T20:35:00.001+01:002015-05-11T20:35:21.855+01:00The best summary of life I have ever read !
This is just so good I have to post about it.
From "My 30 day challange" by Alex Ikonn. On video Day 3 there is this quote from an Unknown source. It is so simple and yet more valuable than most of the self help books.
"Life isn't a destination - it's a journey. We all come upon unexpected curves and turning points, mountain tops and valleys. Everything that happens Marc Andreuhttp://www.blogger.com/profile/03211119930348404381noreply@blogger.com0tag:blogger.com,1999:blog-36686417.post-26210687956189387552015-05-08T23:02:00.002+01:002017-08-17T05:16:12.051+01:00JAVA Switch Hall sensor with Raspberry Pi
Hello there,
I am back with my Sunfounder's lesson reviews. This is the post for the lesson review 01 of the "37 modules Sensor Kit for Raspberry Pi Model B". The kit its composed of a good set of sensors at a reasonable price, even though the documentation is really also matching to the reasonable the price.
However this is the main point about why these kits are a Marc Andreuhttp://www.blogger.com/profile/03211119930348404381noreply@blogger.com0tag:blogger.com,1999:blog-36686417.post-28433113545970005122015-05-01T23:07:00.000+01:002017-08-22T22:21:29.419+01:00JAVA ADXL345 with Raspberry Pi
Hello there,
Last lesson review of the Sunfounder Super kit for Raspberry Pi. This lesson is quite easy and the original C code works just fine. The Ex15_Adxl345 its just a simple JAVA translation, with some code cleaning re-factoring, of the adxl345.c code example. The main point of this lesson is to get to understand what is I2C and how does it works.
Some very good Marc Andreuhttp://www.blogger.com/profile/03211119930348404381noreply@blogger.com0tag:blogger.com,1999:blog-36686417.post-27264518960187872012015-04-28T21:06:00.002+01:002017-08-22T22:20:17.618+01:00JAVA LCD 1602 with Raspberry Pi
Hello there, time for one more lesson review.
Lesson 14 is different from all the previous exercises. First the there is no C code like in all the other lessons, instead the kit comes with a Python example of an LCD menu for Raspberry Pi based on the project PiLcdMenu. Second, the kit comes with the LCD display only. It comes without the Adafruit Keypad Kit which is the Adafruit Marc Andreuhttp://www.blogger.com/profile/03211119930348404381noreply@blogger.com0tag:blogger.com,1999:blog-36686417.post-22123682166524902752015-04-27T21:58:00.002+01:002017-08-22T22:18:53.265+01:00JAVA led segment with Raspberry Pi
Hello there,
One more lesson update for the Sunfounder Super kit for Raspberry Pi. These two lessons, 12 and 13, are based on the same shift register principle of the lesson 11. The key concept therefore is the same and these set of exercises use the same main methods "transferInputByteToShiftReg(byte)" and "latchShiftRegToStorageReg()" from the common base class "Common_74HC595". A Marc Andreuhttp://www.blogger.com/profile/03211119930348404381noreply@blogger.com0tag:blogger.com,1999:blog-36686417.post-5420084435848123282015-04-23T22:27:00.000+01:002017-08-22T22:16:55.720+01:00JAVA Shift register with Raspberry Pi
Hello there, one more lesson to comment on.
This lesson is good to truly understand what is a shift register. The code is relatively simple once you understand what is a shift register. A grate video to understand what are shift registers is the video called "How Shift Registers Work!" from Kevin Darrah.
The circuit is quite straight forward and the documentation schema works Marc Andreuhttp://www.blogger.com/profile/03211119930348404381noreply@blogger.com0tag:blogger.com,1999:blog-36686417.post-21067661942315210272015-04-21T20:32:00.000+01:002017-08-22T22:15:22.828+01:00JAVA 555 timer with Raspberry Pi
Hello there,
This lesson is actually working fine with the documentation and code provided. However I added a few modifications to make it easier to understand how it works.
First I added a LED to the output in Pin 3 to check at what exact moment the code should increase the counter. With the values of the resistors and capacitors used in the example it is quite a challenge to visualise Marc Andreuhttp://www.blogger.com/profile/03211119930348404381noreply@blogger.com0tag:blogger.com,1999:blog-36686417.post-64282621837711586632015-04-04T21:21:00.003+01:002017-08-22T22:14:24.243+01:00JAVA Rotray Encoder with Raspberry Pi
Hello there thanks for reading,
Well well well. This was fun hard thing to play with, the exercises of lesson 09 from the Sunfounder super kit for the Raspberry pi for model B.
The source code of all Ex09 variations are here.
I learnt that this kit comes with the cheapest components in the market, they look good, but they are missing some capabilities for the very good reasonMarc Andreuhttp://www.blogger.com/profile/03211119930348404381noreply@blogger.com0tag:blogger.com,1999:blog-36686417.post-6039844186744817982015-03-29T16:59:00.002+01:002017-08-22T22:10:41.191+01:00JAVA DC Motor on Raspberry PiHello there,
More corrections on the Super Kit for Raspberry Pi Model B . I kind of like this rather "hacky" kit and its faulty lessons. How boring could it be if things worked as expected :-)
At least they have you tube lessons which helps a lot, not perfectly, to find the bugs. This is my post about the corrections on the PDF Lesson 8 — How to Drive a DC Motor (even in youtube Marc Andreuhttp://www.blogger.com/profile/03211119930348404381noreply@blogger.com0tag:blogger.com,1999:blog-36686417.post-77510303485617375552015-03-28T21:40:00.003+00:002017-08-22T22:09:44.040+01:00Raspberri Pi with Pi4j and Junit testing mockups
Hello, good to see you reading this post !
This maybe not the most efficient way to play with raspberry pi, however JAVA with all its verbosity allows a higher level of abstractions. With unit testing we get much better code maintainability and many other good non functional requirements.
This is a new project to practice how would be a unit tested code of the translated lessons, Marc Andreuhttp://www.blogger.com/profile/03211119930348404381noreply@blogger.com0tag:blogger.com,1999:blog-36686417.post-11869238792583362962015-03-28T20:45:00.000+00:002015-06-18T21:50:08.246+01:00JAVA Buzzer sensor with Raspberry Pi
Hello there,
How did you end up reading this post ? ;-P
This is a quick post to publish the corrections on the Super Kit for Raspberry Pi Model B. This is a cheap kit where the documentation is very poor and it contains some mistakes.
The first and more important mistake to be aware is that the power cable should be connected to 3.3V not the 5V like shown in the images ofMarc Andreuhttp://www.blogger.com/profile/03211119930348404381noreply@blogger.com0tag:blogger.com,1999:blog-36686417.post-34648417417136990142014-11-09T21:36:00.002+00:002014-11-10T22:25:40.719+00:00Airpi streamed dashboard
Hello guys,
Following my last post about Streametry. This weekend I have connected my Airpi mini weather station to the new try me online Streametry service and following the instructions from the Streametry blog I was able to setup a nice weather dashboard to visualize the data in real time.
Room weather dashboard
I also tricked the print.py into printLarge.py code to print large Marc Andreuhttp://www.blogger.com/profile/03211119930348404381noreply@blogger.com0