Today is also the day of the Johnny Miles marathon and we still have runners going by the house. Lots of the energy there!
Raspberry Pi User Group Meeting, June 17, 2017
Place: New Glasgow Library, New Glasgow, NS
Arduino / Python Serial Communications Using PySerial:
We had a Raspberry Pi User Group Meeting yesterday, June 17th. I was working on my robot yesterday. I am working through some tutorials on YouTube about Arduino and Python Serial Communications. I had looked up a number of tutorials online and worked through a couple of them. However, whenever I tried to do something that expanded on the ideas presented, it never worked. That is why I did some more searching and found the topic above.
Here is a link to the first video of a good set:
These videos are short and very relevant to how I want to use an Arduino and a Raspberry Pi Zero Wireless together on my robot. To make things really simple, I am using a USB cable to interface Arduino and Python. For testing and learning purposes, I am using a PC running Ubuntu with my Arduino. Using Linux and Arduino really cuts down on prototyping time as the programs compile and upload very quickly with such a system. It also works fairly quickly to actually develop on the Raspberry Pi Zero W but, there it time to go back and forth between the RPi and a PC to view any kind of web-based tutorials.
By the way, this topic uses PySerial and works with Python 2 and Python 3.
This is my robot in its current state:
This is a mess of wires! However, if you take the time to look through the wires,
Underneath are the geared motors with wheels, the battery pack with
For a change in direction, and possible use on a robot at some point, we checked out running a web server on an old Android phone. I chose a tutorial on the PAW Web Server which is a simple app that runs on Android without having to root the device. It has some excellent features but keep in mind that a single-core 800 MHz, 512 MB RAM device will not run much at blazing fast speeds.
All the same, it is fun to use a webcam server, robot text-to-speech, and of course, serving up actual webpages. There is too much to describe but it looks very useful and the interface is very easy to use. Just search for tutorials on the PAW Server and you should find something to guide through orientation.
List of Topics To Date:
Here is an updated list of things we have worked on or covered in some way, to date:
- Raspberry Pi radio - your own little FM broadcaster!
- Command line music players and how to use them to edit music files
- FlightRadar24 - watch airline data
- How to set up your RPi the first time
- Minecraft Pi workshop - programming in Python to make your own custom Minecraft game
- How to make an LED turn on and off using Python and RPi General Purpose Input/Output (GPIO) pins
- Free RPi material such as magazines and short books provided by "The MagPi" magazine
- Setting up your own private LAN (not Internet accessible). This is useful for places where organizations keep their own Internet Accessible LAN locked down. This means you cannot do simple things such as using SSH to login into your RPi. If you set up your own private LAN, you can connect both your PC and RPi and login remotely using SSH.
- Run a servo motor using Python.
- RPi 3 as desktop PC replacement - would do if that was all you had but, not really recommended.
- RPi 3 - 3.5 inch touchsreen
- Starting to explore Arduino/RPi Zero W USB communications (same as Arduino/Python Serial Commuinications)
- Forward/Reverse Relay modules