Welcome to Team STOBOR Raspberry Pi Workshop. This is a STEM Outreach program organized by members of Team# 11088, STOBOR. The workshop lesson plans are prepared by our team. Please feel free to browse the materials here and try the projects. If you would like us to organize a workshop, please drop us an email : firstname.lastname@example.org with number of attendees, age range and location.
- Windows or Mac laptop with at least 4GB RAM, 10GB free disk space and microSD or SD card slot.
- Pair of headphones
- Download and install Pi Bakery
- Download and install VNC Viewer
- Download and install PuTTY
- Ask host for WiFi network name and password. Make a note of this. Make your laptop connect to this network.
- Make sure you have all parts listed below.
The laptop and Raspberry Pi must be on the same wireless network. When using a guest network, if your laptop is on the main network (e.g. 192,168.x.x) and Raspberry Pi on a guest network(e.g. 192.254.x.x.), the connections to Raspberry Pi will fail.
- Raspberry Pi 3
- Sense HAT
- Micro USB Power supply
- USB microphone
- 16GB micro SDHC card
Date, Time and Location
|18th Nov 2017||2pm till 6pm||Stamford, CT||Sambasiva Andaluri, Umesh Andaluri, Salil Kamath|
|1||Raspbian Install on SD card||
|2||Assemble Raspberry Pi||Follow instructions to assemble the Pi, insert SD card. Show the assembly to members of STOBOR team to make sure you got the right assembly before proceeding with next step.|
|3||Powering On||Power on Raspberry Pi using the supplied power adapter. Since the OS was already installed and WiFi was already configured, you Raspberry Pi should be ready.|
|4||Sanity Checks||We will now perform a series of simple checks to ensure everyone have all the hardware software necessary and all are in working condition. This helps to run the projects quickly and smoothly.
|6||Mathematica + SenseHAT|| 1. Try the SenseHAT temperature conversion from Celsius to Fahrenheit.
Future Workshop Projects or DIY
|7||Make your own Amazon Echo||Due to changes to Amazon security policy, this project will be demonstrated towards the end of the workshop if time permits. The kit contains all the right components to make this work. You may try this with the help of your parents.|
|8||Markdown note server||Learn markdown and install this markdown server on Pi for a custom Evernote type note server. Children can learn cool extensions like mermaid to add diagrams to notes.
|9||Cloud9 IDE||Install Cloud9 IDE on Raspberry Pi. This makes easier for kids to write and run programs without messing around (or overwhelming) with command line.
Node Red flows
Curated set of node-red flows
|Idea||Description and links to the flow|
|Family/Friends tracker||On each “user” Raspberry Pi, Capture current location (Don’t know how but could be from WiFi?), send that data to MQTT and publish it on a topic. One Raspberry Pi to serve as “server” where a world map node subscribes its data from MQTT topic and plots them on the map.|
|Using microPi to record audio and play it back|
|PyBeacon via node-red exec node||https://github.com/teamstobor/raspberry-pi-workshop/blob/master/pybeaconflow.json|
|Description||Notes, links etc.|
|Node-Red Installer||After the initial PiBakery install, if anytime raspberry pi was upgraded, then node-red would need to manually installed using the following command if node-red service fails to start using error “Unit nodered.service entered failed state.”
|Node Red Guide||http://noderedguide.com|
|Easy identification of Pi on the net and for the participant||In the workshop on 18th Nov, the most time consuming task was to identify each pi on network. In order to do this seamlessly, we would need to set hostname for each pi. This can be done via PiBakery. However, Windows PCs, cannot identify the Pi using hostname. After some googling, it was suggested by several posts that by installing samba on the Pi, the hostname could be advertised and Windows PCs can connect to the Pi using the hostname. A better way would be to install avahi.
Another problem was to physically identify each Pi. Since the Pi had a SenseHAT, it would be a good idea to have a unique message or symbol displayed on LED matrix when joystick was pressed. This has to be installed via PiBakery.
|Update Pi Bakery recipe to install all software||PiBakery recipe should include (workshop attendees will only set Wifi and hostname). While installing software, display a progress indicator on SenseHAT and once done show another indicator on SenseHAT to signal that installation has been done.
|Missing Manage Palette in node-red||In the default node-red shipped with Raspbian (Full) the node-red menu does not show “Manage Palette” option. This option is convenient to install extra nodes from node-red UI without requiring to use command line.
When node-red started, it displayed this error “Palette editor disabled : npm command not found”. This was fixed by installed npm using
|Bluetooth||Check bluetooth service status using command line
If we notice any error regarding Sap such as
In order to start BLE Beacons from command line
|SDHC Card issues||Once PiBakery writes the SD card, in order to re-use (or re-format) the card, the card might only show a few MB (e.g. 56MB). This is due to FAT32 partition of 56MB and an extended partition of rest of the disk space for linux file system. We would need to reclaim the space in order to rewrite the OS using PiBakery. Open the disk partition manager in Windows, delete all partitions. Once the SD card shows a full unallocated partition, right click on unallocated partition, create “New Simple Volume” and follow the prompts to create a FAT32 partition and format the SD card. Now this card can be rewritten using PiBakery.|