mirror of
https://gitlab.waag.org/make/fablab/interns/2025/sam.git
synced 2025-08-02 19:34:56 +00:00
docs
This commit is contained in:
@@ -1,15 +1,37 @@
|
||||
# Machine building week
|
||||
For this week we needed to build a machine. We started brainstorming and came up with a few ideas.
|
||||
For this week we needed to build a machine. We started brainstorming and came up with a few ideas.
|
||||
|
||||
-1.png>)
|
||||
Here are a few of our ideas
|
||||
* In the top left we have the self driving trash can that comes to pick up your trash.
|
||||
* An automatic tea maker
|
||||
* Some kind of machine that keeps on juggling something
|
||||
* An introverted shy robot
|
||||
* A machine that automatically shoots darts in the bullseye of a dart board
|
||||
* An system to automatically refills the water in our coffee machines so it doesn't starts beeping loudly
|
||||
|
||||
We went with the idea of the Shy robot in the end. I thought the dart throwing robot was really cool. But we wen't with the Shy robot in the end because it is more realistic to make and democracy.
|
||||
|
||||
-1.png>)
|
||||
|
||||
Here are the first few sketches of the shy robot. We wanted to give it eyes on strings that push but we wanted more mechanical stuff. So we decided on making his head a big lid and making the eyes pop out there. So we used more actuators and mechanical stuff.
|
||||
|
||||

|
||||
|
||||

|
||||
During our brainstorming session Henk also asked us to think about which sensor you are going to use and how many to see how many pins you need.
|
||||
|
||||
|
||||
## Starting with the electronics
|
||||
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.
|
||||
|
||||
## Custom boards
|
||||
|
||||
<!--add stuff about funny no esp in esp xiao and about using arduino with hat so we only had I2C-->
|
||||
Quick multiplexer breakout board design for rapid prototyping.
|
||||

|
||||
When I tried connecting it into my breadboard the power connectors snapped loose because the breadboard was too stiff. So I didn't test the board and went straight to a next prototype.
|
||||
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.
|
||||

|
||||
|
||||
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.
|
||||
|
||||

|
||||
With this board I wanted to make a breakout for 5 I2C devices. So I could hook up 5 time of flight sensors for example. The first attempt I gave up. I also asked henk for some feedback on how to do the connectors. He recommended using UDPI connectors and making breakout boards for every ToF sensor so I could connect them properly.
|
||||
@@ -27,14 +49,16 @@ This is the design for the breakout board. We are using pin headers since we alr
|
||||

|
||||

|
||||
|
||||
### The end result:
|
||||

|
||||
This board could connect 5 ToF sensors together on one I2C bus.
|
||||
|
||||
|
||||
|
||||
## Chapter 2 Ultrasonic sensors
|
||||
We didn't have enough ToF sensors for our robot. I asked Henk if I could order some for myself and use them in the project. But he told me no and to use ultrasonic sensors. And he told me to use the current board for that. But I said that wouldn't work because only one multiplexer pin goes to each breakout because I designed it for the ToF so now im going to do some solder hacking and try to wire it together myself.
|
||||
|
||||
|
||||
|
||||
|
||||
??? Failure
|
||||
```cpp
|
||||
int readUltrasonicSensor(int trig, int echo)
|
||||
|
Reference in New Issue
Block a user