My name is Ryosuke Kamei and I am an IT consultant based on the idea of "gentle IT"! Currently, in my work, I am doing upstream processes focusing on requirements analysis and requirements definition, but I also write programs! As part of friendly IT activities, "Raspberry Pi 3 (commonly known as Raspberry Pi)" with the idea of "providing a PC that can be programmed for education at a low price", so there is Node-RED that can be programmed with GUI for education, so I will introduce it. To do! In addition, I will also introduce the settings for developing with Python!
Install python package manager pip and dev Install WiringPi for GPIO control
Since the idea of Raspberry Pi is "to provide a PC that can be programmed for education at a low price", there is an application called Node-RED so that programming can be done with GUI. It seems that it is already installed on Raspberry Pi 3 (as of July 3, 2016), but I have listed it just in case. (Installed on the latest version of Raspberry Pi)
Node-RED installation
$ sudo apt-get install nodered
Node-RED start
$ node-red-start
Open your browser and go to "http://127.0.0.1:1880/" You can program with GUI! The programming language seems to use Node.js!
As Node-RED touches when teaching children, I would like to program normally to light LEDs and turn motors. I use a programming language called Python, and it seems convenient to have a package manager pip, so I will install it. Install WiringPi for GPIO (general purpose input / output control).
python3-dev python3-install pip
$ sudo apt-get install python3-dev python3-pip
Install Wiring Pi2 using pip3
$ sudo pip3 install wiringpi2
Operation check
$ sudo python3
Python
>>> import wiringpi
(No error displayed)
wiringpi.piBoardRev()
2 (only displayed as ← 2)
Raspberry Pi 3 main unit 5,980 yen Raspberry Pi official 7 inch touch screen display 11,330 yen Note It is OK if you have a liquid crystal display or a TV with an HDMI terminal. I just don't have it at home ... crying [Sanwa Supply USB Keyboard (Black) SKB-L1UBK 496 Yen](http://www.amazon.co.jp/gp/product/B005LL9J9G/ref=as_li_ss_tl?ie=UTF8&camp=247&creative=7399&creativeASIN=B005LL9J9G&linkCode=as2&tag=sr2smail twenty two) USB mouse What was at home ... SD card What was at home ... Razpai Magazine June 2016
Install Raspberry Pi 3 → Wireless LAN → Japanese input / output → Operate from Mac
Install Docker on RaspberryPi3 Build a Python + bottle + MySQL environment with Docker on RaspberryPi3![Easy construction] Build a Python + bottle + MySQL environment with Docker on RaspberryPi3![Trial and error]
Make an air conditioner integrated PC "airpi" with Raspberry Pi 3!
Programming with Node-RED programming with Raspberry Pi 3 and programming normally Light the LED with python on Raspberry Pi 3 (Hello World) Detect switch status on Raspberry Pi 3 Run a servo motor using python on Raspberry Pi 3 Control the motor with a motor driver using python on Raspberry Pi 3! Detect slide switch using python on Raspberry Pi 3! Detect magnet switch using python on Raspberry Pi 3! Detect temperature using python on Raspberry Pi 3! Sound the buzzer using python on Raspberry Pi 3! Detect analog signals with A / D converter using python on Raspberry Pi 3! Detect "brightness" using python on Raspberry Pi 3! Detect "temperature (using A / D converter)" using python on Raspberry Pi 3! Output to "7-segment LED" using python on Raspberry Pi 3!
Coding rules "Let's write gentle code" (FuelPHP) Naming convention "Friendly to yourself, team-friendly, and unseen members after 3 months"
PHP environment + Eclipse is linked to Apache using Docker Building FuelPHP development environment using Docker Create CRUD skeleton using initial settings of FuelPHP development environment using Docker and scaffold FuelPHP database migration
Recommended Posts