Raspberry Pi: Difference between revisions
From wikiluntti
| Line 3: | Line 3: | ||
Establish Wifi, Bluetooth. | Establish Wifi, Bluetooth. | ||
Credentials are <code>pi@raspberrypi.local</code> and <code>raspberry</code>. | |||
=== Set Up WiFi without Screen === | === Set Up WiFi without Screen === | ||
| Line 33: | Line 24: | ||
https://www.raspberrypi-spy.co.uk/2017/04/manually-setting-up-pi-wifi-using-wpa_supplicant-conf/ | https://www.raspberrypi-spy.co.uk/2017/04/manually-setting-up-pi-wifi-using-wpa_supplicant-conf/ | ||
=== USB cable // Perhaps requires Zero === | |||
Connect via usb to ''gadget'' mode. After flashing RaspianOS. The following files are at <code>boot</code>-directory | |||
* Modify <code>config.txt</code>: add <code>dtoverlay=dwc2</code> | |||
* Add an empty file called <code>ssh</code> | |||
* Edit <code>cmdline.txt</code>: Ensure that there exist <code>rootwait modules-load=dwc2,g_ether</code>. | |||
Now you can <code>ssh pi@raspberrypi.local</code> if the usb cable is plugged in. | |||
== Bluetooth on Raspi 3 == | == Bluetooth on Raspi 3 == | ||
Revision as of 16:25, 19 October 2020
Setting Up The Raspian
Establish Wifi, Bluetooth.
Credentials are pi@raspberrypi.local and raspberry.
Set Up WiFi without Screen
Into root directory:
- Add an empty file called
ssh - Add a file
wpa_supplicant.confwhich includes
country=ee
update_config=1
ctrl_interface=/var/run/wpa_supplicant GROUP=netdev
network={
scan_ssid=1
ssid="YOUR_NETWORK_NAME"
psk="YOUR_PASSWORD"
key_mgmt=WPA-PSK
}Note the (Notepad++: Edit) EOL conversion UNIX.
https://www.raspberrypi-spy.co.uk/2017/04/manually-setting-up-pi-wifi-using-wpa_supplicant-conf/
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.
Bluetooth on Raspi 3
sudo apt update
sudo apt upgrade
sudo apt-get install python-bluez
#sudo apt install bluetooth pi-bluetooth bluez bluemansudo 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