Science Exposure

It was quite time consuming, but I managed to find some great helpful web sites and glean a bit of info from each. As things do, it evolved roughly like this… View the temperature data on the screen updating every second Make the temparature data stop scrolling and stay in a fixed place Temperature Measurement Log the data locally on the Pi Log the data on local media server so other local users can view it Put it in a self-refreshing html file so it updates in the browser every few seconds Displayed in browser But this was still insufficient. So the last step, pending the arrival of more sensors, was… Log the data to the internet so that everybody can view it. Temperature logging on the web Needless to say, each step threw up different challenges, and there was some frustration and trouble-shooting along the way. The scientist in me loves measurement and data logging. So, which sensors worked out? I can heartily recommend two analogue sensors: After getting frustrated with the DS18B20, I wasted a lot of time trying to get the right resistor on the LM z to make it read something like the right voltage. And sure enough, it works just as it should I really need to stop being surprised when things work as they should. Another site which came to the rescue was Adafruit.

Raspberry Pi LInux LESSON Controlling GPIO Pins in Python

It is possible to wire up more than one display! However I suspect the rest of the wiring might be somewhat challenging… Wiring is described at the end of the this page. The LCD library will call pinMode functions, but these are ignored if you have already set the modes using the gpio program and want to use the wiringPiSetupSys mechanism.

Adafruit DC & Stepper Motor HAT for Raspberry Pi – Mini Kit Let your robotic dreams come true with the new DC+Stepper Motor HAT from Adafruit. This Raspberry Pi add-on is perfect for any motion project as it can drive up to 4 DC or 2 Stepper motors with full PWM speed control.

So I wrote this Windows. This post describes a few things about the MPR library. Adafruit has this chip on a breakout board that can be interfaced with micro controllers. It has 12 pins that can be utilized as Capacitive touch sensing electrodes. A partial set of these pins can also be used as GPIO pins. This first version of the library is geared towards capacitive touch configuration only.

The Capacitive sensing pins are connected to some cardboard wrapped in aluminum foil. Once I2C connection is established, specific registers can be read to get the status of the pins. The touch status for each pin is maintained as a bit. By reading a byte at register 0x00, the touch status of the first 8 pins can be obtained. Five bits on the next register 0x01 indicate the status of the remaining 5 pins.


Connect cables as per the table above. If you have more than 2 ESP consider making an adapter, reconnecting the cables each time is annoying. I have a nice build log here. This will put the microcontroller into the adapter mode. Lastly, check the cables again.

I am working up a sensor package for my PI. I have already added the TMP temperature sensor from Sparkfun. On the GPIO it is powered from pin 1, grounded on pin 6, with pin 3 .

The HC-SR is a motion sensor module that is inexpensive and very versatile. It can be used all by itself or combined with a micrrocontroller or microcomputer to create a number of motion sensing products. Introduction There is no denying it — human beings are hot stuff! Humans and animals radiate body heat to such a degree that the temperature of a room rises when people enter it.

That rise in heat level experienced when a person enters a room can be detected and used as a trigger for a number of devices. Burglar alarms and intruder detectors are obvious applications.

Multiplexing is fun on Raspberry Pi

Now mount the Raspberry Pi to the standoffs. Plug in the RPI-Display cable: And wire the GPIO as follows:

The Raspberry Pi is a wonderful little computer that fits in the palm of your hand, yet packs enough power to run your home media center, a VPN, and a lot more. Hook Up Your Raspberry Pi.

The remaining pins consist of power supply 5v and 3. In future, this might change. This is a really simple library which allows you to read to and write from any GPIO pin by various means like polling, triggers, events, etc. GPIO library comes pre-installed with the latest version of Raspbian. Once downloaded, you need to extract it. Open up the terminal, browse to the directory where you downloaded the library and type in the following to extract replace the name of the file with the one that you downloaded — tar zxvf RPi.

This not only gives beginners an idea of how things generally work, but also makes sure that all the tools and devices are properly set up and working properly. A little background Detailed Diagram of an LED For those who are not familiar with circuits, this might seem a challenging task. If you are not already familiar, LEDs are little devices that glow and emit light of some color red, blue, green, yellow, white, etc upon providing a positive voltage across its pins forward bias.

Raspberry Pi

For the source of that project see here: A lot of people reported success with using an Arduino for both the sending a receiving and so I ordered an Arduino. The only thing left to do here was to flash the Arduino with the Homeduino code, hook up the sensors and I was in business. Install your Pi I used Raspbian which is just a matter of flashing the SD card and then booting the pi with it. You can download Raspbian here.

The link also contains a tutorial on how to flash an SD card on windows and mac.

GraspIO’s “Cloudio” IoT prototyping add-on board for the Raspberry Pi includes a 1-inch OLED display, sensors, 6x I/Os, and a servo, and is controlled using a mobile/cloud-based drag-and-drop app with IFTTT and voice support.

Also, a Raspberry Pi and a small SD card. Using free software, add the disk image to the SD card, in one simple step. It will boot right up and be ready to play with the keyboard. Add your own games by putting them on a thumb drive and plugging it in. The system will automatically add them. I made button designs in Adobe Illustrator.

Then cut them out, in vinyl, on a craft cutting machine Silhouette Portrait. Cut and apply a piece of transfer paper over the vinyl. Roughly cut out each individual sticker.

Arduino as ADC for Raspberry Pi

There are relatively easy to use and should present no problems for anyone used to the Arduino system, or C programming in-general. The main difference is that unlike the Arduino system, the main loop of the program is not provided for you — you need to write it yourself. This is often desirable in a Linux system anyway as it can give you access to command-line arguments and so on.

Offering quality microcontroller, shield, sensors, electronic components, iot gateway/node and robot kit with arduino, lattepanda, raspberry pi and intel edison/cuire/joule.

Not to be outdone by its bigger Raspberry Pi brother, the Compute Module is also destined for space! Compute Module 3 The idea of the Compute Module was to provide an easy and cost-effective route to producing customised products based on the Pi hardware and software platform. The Module takes care of the complexity of routing out the processor pins, the high speed RAM interface, and core power supply, and allows a simple carrier board to provide just what is needed in terms of external interfaces and form factor.

In fact, today we are launching two versions of Compute Module 3. This board provides both a starting template for those who want to design with the Compute Module, and a quick way to start experimenting with the hardware, and building and testing a system, before going to the expense of fabricating a custom board. With the launch of CM3 and CM3 Lite, we are not obsoleting the original Compute Module; we still see this as a valid product in its own right, being a lower-cost and lower-power option where the performance of a CM3 would be overkill.

Our partners RS and Premier Farnell are also providing full development kits, which include all you need to get started designing with the Compute Module 3. The CM3 is largely backwards-compatible with CM1 designs which have followed our design guidelines. The caveats are that the Module is 1mm taller than the original Module, and the processor core supply VBAT can draw significantly more current.


Like many things that I post, this is a long and rambling story that could be summarized like this: Wow, it sure is easier to set up a Raspberry Pi image today than it used to be! I began my current embedded C programming job in April

Infrared (IR) communication is a widely used and easy to implement wireless technology that has many useful applications. The most prominent examples in day to day life are TV/video remote controls, motion sensors, and infrared thermometers.

If you want, reclaim space on your SD card: Upload a program to your Arduino using your normal everyday PC. To help you out, I’ve made a simple program that logs temperature and light intensity data from a thermistor and a photocell it records data when it senses that the temperature changes by more than 0. On the Raspberry Pi, make a python program that uses the serial module to read data coming out of the Arduino.

The program should then write this data to disk. Something like this should work name it something like dataLogger. It expects data in the format: Run the python program to log data note: I suggest you run this program within screen so that you can do other things with your Raspberry Pi while it’s collecting data: Use Gnuplot which was installed in step 4.

To do this, make a small gnuplot script call it something like plotData. Move the file data. The end Finally, the end result: It does get hot in direct sunlight in Ottawa.

Programming an Arduino from Raspberry Pi