-
Notifications
You must be signed in to change notification settings - Fork 32
Control of Raspberry Pi _old_
There are two ways to power Raspberry Pi
- Plug in the power cable (Micro USB-B) into the power socket next to the HDMI port.
- Connect the battery to the GPIO pins.
- Red cable (+5V) to pin 2 or 4
- Black cable (ground) to pin 6, 9, 14, 20, 25, 30, 34 or 39
Hostnames of the robots are robot-1, robot-2 and robot-3. To log in to robot-1:
ssh pi@robot-1Password:
raspberry
If the hostname is not recognised:
- Check if you are connected to pinet Wi-Fi network.
- Try scanning the network using nmap
nmap -sP 192.168.1.*and then ssh to a discovered IP address
ssh [email protected]
If running the scripts terminates with a following error:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Can't connect to pigpio on localhost(8888)
Did you start the pigpio daemon? E.g. sudo pigpiod
Did you specify the correct Pi host/port in the environment variables PIGPIO_ADDR/PIGPIO_PORT? E.g. export PIGPIO_ADDR=soft, export PIGPIO_PORT=8888
Did you specify the correct Pi host/port in the pigpio.pi() function? E.g. pigpio.pi('soft', 8888)) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
the pigpio daemon is not started. Solution:
sudo pigpiod
if still you get an error, try (changing the way to access the GPIO)
sudo pigpiod -a1
Safest way for shutting down Raspberry Pi is with command:
sudo shutdown -h now
If you want to reboot, use
sudo shutdown -r now
For more information about the Triangle of Life concept visit http://evosphere.eu/.
_________________
/ Premature \
| optimization |
| is the root of |
| all evil. |
| |
\ -- D.E. Knuth /
-----------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||