Raspberry Pi: Difference between revisions
From wikiluntti
No edit summary |
|||
Line 2: | Line 2: | ||
Establish Wifi, Bluetooth. | Establish Wifi, Bluetooth. | ||
=== USB cable // Perhaps requires Zero === | |||
Connect via usb to ''gadget'' mode. After flashing RaspianOS. The following files are at <code>boot</code>-directory | Connect via usb to ''gadget'' mode. After flashing RaspianOS. The following files are at <code>boot</code>-directory | ||
Line 9: | Line 12: | ||
Now you can <code>ssh pi@raspberrypi.local</code> if the usb cable is plugged in. | Now you can <code>ssh pi@raspberrypi.local</code> if the usb cable is plugged in. | ||
=== Set Up WiFi without Screen === | |||
Into root directory: | |||
* Add an empty file called <code>ssh</code> | |||
* Add a file <code>wpa_supplicant.conf</code> which includes | |||
<code> | |||
network={ | |||
ssid="YOUR_NETWORK_NAME" | |||
psk="YOUR_PASSWORD" | |||
key_mgmt=WPA-PSK | |||
} | |||
</code> | |||
== Bluetooth on Raspi 3 == | |||
<code> | |||
sudo apt update | |||
sudo apt upgrade | |||
sudo apt-get install python-bluez | |||
#sudo apt install bluetooth pi-bluetooth bluez blueman | |||
</code> | |||
<code>sudo nano /etc/systemd/system/dbus-org.bluez.service</code>. Modify <code>ExecStart=/usr/lib/bluetooth/bluetoothd –C</code> | |||
<code>sudo sdptool add SP</code> | |||
<code>sudo reboot<code> | |||
== Raspi and Ev3-G == | == Raspi and Ev3-G == | ||
Line 15: | Line 50: | ||
=== Pairing ev3 and Raspi === | === Pairing ev3 and Raspi === | ||
<code> | |||
bluetoothctl | |||
power on | |||
discoverable on | |||
scan on | |||
</code> | |||
<code> | |||
trust <ev3 address> | |||
pair <ev3 address> | |||
</code> | |||
Revision as of 16:08, 19 October 2020
Setting Up The Raspian
Establish Wifi, Bluetooth.
USB cable // Perhaps requires Zero
Connect via usb to gadget mode. After flashing RaspianOS. The following files are at boot
-directory
- Modify
config.txt
: adddtoverlay=dwc2
- Add an empty file called
ssh
- Edit
cmdline.txt
: Ensure that there existrootwait modules-load=dwc2,g_ether
.
Now you can ssh pi@raspberrypi.local
if the usb cable is plugged in.
Set Up WiFi without Screen
Into root directory:
- Add an empty file called
ssh
- Add a file
wpa_supplicant.conf
which includes
network={
ssid="YOUR_NETWORK_NAME"
psk="YOUR_PASSWORD"
key_mgmt=WPA-PSK
}
Bluetooth on Raspi 3
sudo apt update
sudo apt upgrade
sudo apt-get install python-bluez
- sudo apt install bluetooth pi-bluetooth bluez blueman
sudo nano /etc/systemd/system/dbus-org.bluez.service
. Modify ExecStart=/usr/lib/bluetooth/bluetoothd –C
sudo sdptool add SP
sudo reboot
Raspi and Ev3-G
Pairing ev3 and Raspi
bluetoothctl
power on
discoverable on
scan on
trust <ev3 address>
pair <ev3 address>
Some links
-
-
-
Raspi and Ev3Dev