Beginning Raspberry Pi, Arduino, and Friends

From Splatspace
Jump to: navigation, search

Pi Arduino Launch and friends.png

An exciting monthly meetup that focuses on an introduction and learning of microcontroller starter boards and introductory electronic sensors, actuators and their control. Several types of microcontrollers are worked with, from 32-bit ones capable of running Linux, to 8-bit ones that just run your own single process, and several types in-between. Raspberry Pi's are the most popular Linux-running microcontroller boards, and Arduino's are the most popular of the 8-bit variety. These two comprise the most popular devices that people are likely to have and likely to search for when seeking out a community to collaborate with. But don't rule out other prototyping boards or even bare microcontroller chips like the PIC family from Microchip, TI launchpad family, other ARM-chip controllers like the BeagleBone and the Cypress PSOC.

Each session, a new topic is introduced to give folks something to chew on. These topics occasionally build on previous sessions, but the workshops are kept open so folks can focus on topics from previous events or work on their own projects and get support from other attendees. Here are some topics previously presented with links to tutorials and materials covering the topic:

Video with Pi Camera
Web Controlled lamp using Flask
Tweak your Raspberry Pi
  • running raspi headless (without monitor, keyboard, or mouse)
  • run raspi-config and enable sshd (in advanced settings)
  • enable a wi-fi adapter
  • use nmap or some other tool (like the app fing for android and IOS) to find your pi on the network (or use some other clever way to know the ip address)
  • ssh into your pi
  • from here you can use tmux for console-based interaction or install and run vncserver if you like the comfort of the gui desktop
Simple RasPi and Arduino communication over usb
Reading analog sensor via software SPI and an MCP3008 chip
Basic interrupt handling for Arduino and Raspberry Pi.
A few simple C programs (conditionally compiled for either Arduino or Raspberry Pi) will be used to demonstrate simple interrupt handling.
Raspberry Pi Wiring Pi library install instructions
Arduino C code sketches
Raspberry Pi make files and C code
Motion Detection - reading a PIR sensor
Full PIR Tutorial
Using PIR (Passive InfraRed) sensors with Arduino and Raspberry Pi.
A variation on the motion-detection code will be used with PIR (body motion) sensors:
  • PIR tutorial
  • Functional equivalent PIR sensor details and links to other tutorials
  • Raspberry Pi pin numbering table (only 1st 26 pins used, even on B+/model 2)
  • The following parts relevant to this and future meetings will be available in limited quantities at the meeting and can be kept in return for small donations to Splatspace:
1) PIR sensors & compatible jumpers
2) breadboards
3) LEDs & current limit resistors
4) Jumpers
5) On/off and momentary contact switches
6) Piezo beepers
Show and tells and discussion related to the Splatspace infrastructure,
starting with the lighting system but visiting intelligence for property IDs, self-maintaining solar powered outdoor signs, and more for the current location and the new, totally cooler expansion into one of the Scrap Exchange buildings next year.