Raspberry Pi
Reference info
Configure SSH and VNC to your Raspberry Pi: https://www.raspberrypi.org/documentation/remote-access/ssh/
Default login = pi and default password is raspberry
Setup Raspberry
The different model of Raspberry hardware are on https://www.raspberrypi.org/products/
Upgrade to the last Raspberry Pi OS
See reference page of Raspberry Pi OS: https://www.raspberrypi.org/software/
Install Raspberry Pi Image manager on MAC then copy with that tool the last OS image to the SD Card and install it on Rasberry Pi Hardware
When the Raspberry boot for the first time it will request to update it to latest current OS minor patch, it can take time. Configure also the Wifi
Activate on config, the SSH and VNC for remote connection to it.
Configure the language and regional settings. This is important because this can cause issue with Python later on
// To change the locals and regional settings
$ sudo raspi-config
// Install Yarn package manager:
$ curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
$ echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
$ sudo apt-get update && sudo apt-get install yarnIt can happen you have issue with regionals, look here: https://www.raspberrypi.org/forums/viewtopic.php?f=50&t=11870
Each Raspberry hardware is running a different max version of Rasbian OS.
Raspberry Pi 3 is running on ARM71 and support "Raspbian GNU/Linux 8 (jessie)"
Install Git
Install Git ->
Which Hardware and Software Version you have
Upgrade wiringPi C Lib (for GPIO)
Ref Link: http://wiringpi.com/wiringpi-updated-to-2-52-for-the-raspberry-pi-4b/
To find the Pin-out:
$ gpio readall
Install Docker
To install docker on Raspberry pi: https://phoenixnap.com/kb/docker-on-raspberry-pi
First Docker App
!! The images from docker hub, please select on the left side the ARM64 tag. So when you build a docker image you have to take care of the end where it will run
Illustration of a first Web App DOcker: https://blog.hypriot.com/getting-started-with-docker-on-your-arm-device/
Install Node.js
The installation of Node.js depend of the Processor on the Raspberry Pi.
Installation on Raspberry Pi 4
! Be sure you have first upgraded to the latest Raspberry pi OS, otherwise you can have issue to support limited version of Node.js because of lib gcc++ incompatible used on old Raspberry pi OS.
Illustration steps on https://thisdavej.com/beginners-guide-to-installing-node-js-on-a-raspberry-pi/
Installation on Raspberry Pi 3
Additional info on the type of processor on Raspberry: https://www.makersupplies.sg/blogs/tutorials/how-to-install-node-js-and-npm-on-the-raspberry-pi
Different sites
C programming on Raspberry
Reference Documentation
Your First C Prog on Raspberry
Library Wiring Pi: WiringPi is PRE-INSTALLED with standard Raspbian systems
Other Apps in C
Blink a Led Written in C
Reference Material: http://wiringpi.com/examples/blink/
Other Apps in Node.js
Integrate with Led Bredboard: https://blog.alexellis.io/getting-started-with-docker-on-raspberry-pi/
Run an Alpine image and interact with it
For more info see test command on https://blog.alexellis.io/getting-started-with-docker-on-raspberry-pi/
Integration with Input-Output
GPIO
General Purpose Input/Ouput pinout: https://www.raspberrypi.org/documentation/usage/gpio/
Make a led Blinking
Check tuto: https://www.w3schools.com/nodejs/nodejs_raspberrypi_blinking_led.asp
Application written in javascript on node.js
Take Input and Set Output
Tuto on: https://www.w3schools.com/nodejs/nodejs_raspberrypi_led_pushbutton.asp
Based on Input Create a cryptographic key
Web Socket Button Input to turn on/off Led
Tuto: https://www.w3schools.com/nodejs/nodejs_raspberrypi_webserver_websocket.asp
Temperature & Humidity DHT11 Sensor
Reference Material: https://github.com/momenso/node-dht-sensor
Last updated
Was this helpful?