mirror of
https://gitlab.waag.org/make/fablab/interns/2025/sam.git
synced 2025-08-02 19:34:56 +00:00
docs week 11
This commit is contained in:
BIN
docs/Assignments/week_11_Networking/image-1.jpg
Normal file
BIN
docs/Assignments/week_11_Networking/image-1.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 94 KiB |
BIN
docs/Assignments/week_11_Networking/image-2.jpg
Normal file
BIN
docs/Assignments/week_11_Networking/image-2.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
BIN
docs/Assignments/week_11_Networking/image-3.jpg
Normal file
BIN
docs/Assignments/week_11_Networking/image-3.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
BIN
docs/Assignments/week_11_Networking/image-4.jpg
Normal file
BIN
docs/Assignments/week_11_Networking/image-4.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
BIN
docs/Assignments/week_11_Networking/image.jpg
Normal file
BIN
docs/Assignments/week_11_Networking/image.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 89 KiB |
34
docs/Assignments/week_11_Networking/networking.md
Normal file
34
docs/Assignments/week_11_Networking/networking.md
Normal file
@@ -0,0 +1,34 @@
|
||||
# Networking
|
||||
|
||||
For this week I am planning on securing the connection between my drone and the controller since I already have ESPNow running on both and have a stable connection. I wanna make the connection secure so no one can suddenly hijack the drone.
|
||||
|
||||
|
||||
## Group assignment
|
||||
We used Irja's ESP and my ESP to communicate to each other using the I2C protocol. Henk also gave us his logic analyzer and told us to visualize the I2C and the SPI protocol. We first hooked up the I2C lanes to each other SDA - SDA, SCL-SCL.
|
||||
We used my old board for this.
|
||||

|
||||
|
||||
After testing and getting no signal for some reason I realized that I desoldered the components and all the bridge resistors to re-use them in another board. So there where no connections running anymore to the mcu. After that we directly hooked it up to the MCU using jumpers.
|
||||

|
||||
|
||||
After that we searched for code to communicate I2C between 2 esp's and found this site with exactly what we were looking for.
|
||||
|
||||
https://randomnerdtutorials.com/esp32-i2c-master-slave-arduino/
|
||||
|
||||
In there were 2 plug and play program to get communication running between the 2 ESP's.
|
||||
|
||||
When we had the correct wiring the code instantly worked as expected.
|
||||
My side. Secondary/child
|
||||

|
||||
|
||||
Irja's side. Main/parent
|
||||

|
||||
|
||||
Next up was SPI. For SPI we first tried to make the ESP act as a secondary SPI device but we couldn't figure out how to do that and online I also couldn't find anything. After a while Irja found a site that did have some code and documentation on how it worked.
|
||||
|
||||
https://circuits4you.com/2019/01/03/arduino-spi-communication-example/
|
||||
|
||||
When compiling the main side it worked fine but when compiling the secondary side it had errors that was out of my knowledge on how to fix. So I wen't rummaging through the SPI library in arduino but there wasn't much documentation on how it worked. And the official arduino documentation page gave an error 403.
|
||||
|
||||

|
||||
|
Reference in New Issue
Block a user