diff --git a/docs/Assignments/week_12_machine_building/image-13.jpg b/docs/Assignments/week_12_machine_building/image-13.jpg new file mode 100644 index 0000000..19aa622 Binary files /dev/null and b/docs/Assignments/week_12_machine_building/image-13.jpg differ diff --git a/docs/Assignments/week_12_machine_building/image-14.jpg b/docs/Assignments/week_12_machine_building/image-14.jpg new file mode 100644 index 0000000..cf52d6c Binary files /dev/null and b/docs/Assignments/week_12_machine_building/image-14.jpg differ diff --git a/docs/Assignments/week_12_machine_building/machine_building.md b/docs/Assignments/week_12_machine_building/machine_building.md index 14073c4..16333d2 100644 --- a/docs/Assignments/week_12_machine_building/machine_building.md +++ b/docs/Assignments/week_12_machine_building/machine_building.md @@ -29,7 +29,10 @@ Starting the project we used last years prototype as our starting point. (Our robot already strapped with an Ultrasonic and a Time of flight sensor) Dylan and I wanted to do the coding and electronics of the robot and Patrick and Irja took the designing and building part of the robot. -We realized quickly that we only had 2 ports left over because all other where in use by the arduino motor drive hat. These 2 ports that where left over where the I2C port SDA and SCL. So I thought let's use ToF sensors since you can hook up multiple on I2C. After some digging in the datasheet I found out that wouldn't work because whenever you assign a I2C address to a VL53X1L it would forget it next power cycle. So I thought: what if I used a multiplexer connected to all the XSHUT pins of the ToF sensor to turn them on one by one and assign them each their own I2C address on startup. +We realized quickly that we only had 2 ports left over because all other where in use by the arduino motor drive hat. These 2 ports that where left over where the I2C port SDA and SCL. +![alt text](image-14.jpg) + +So I thought let's use ToF sensors since you can hook up multiple on I2C. After some digging in the datasheet I found out that wouldn't work because whenever you assign a I2C address to a VL53X1L it would forget it next power cycle. So I thought: what if I used a multiplexer connected to all the XSHUT pins of the ToF sensor to turn them on one by one and assign them each their own I2C address on startup. ![alt text](image-11.jpg) Luckily we had the I2C multiplexer [PA9555](https://www.nxp.com/docs/en/data-sheet/PCA9555.pdf). So I used I2C for everything because I had limited pins. So I started designing a circuit. @@ -549,7 +552,7 @@ On the last day I tried to connect everything together. I first started out with I double, triple checked every connection and grabbed new wires in case that was the issue. After a while a directly connected it to the mcu but that also didn't work and then I gave up. -![alt text](image-13.png) +![alt text](image-13.jpg) After going to Henk and reading the datasheet he said I needed to use 5 volts instead of 3.3 volts When I changed that connection it worked. \ No newline at end of file