Robobot circuits: Difference between revisions

From Rsewiki
No edit summary
 
(25 intermediate revisions by the same user not shown)
Line 2: Line 2:


== Digital IO ==
== Digital IO ==
=== Circuit diagram ===


[[File:digital_IO-circuit.png | 900px]]
[[File:digital_IO-circuit.png | 900px]]
Line 9: Line 11:
If output, then a transistor is active when output is high, and can draw at least 1A from the 12V supply.
If output, then a transistor is active when output is high, and can draw at least 1A from the 12V supply.
The 5V and 3.3V can supply no more than 100mA.
The 5V and 3.3V can supply no more than 100mA.
=== PCB ===


[[File:digital_IO-PCB.png | 900px]]
[[File:digital_IO-PCB.png | 900px]]
Line 15: Line 19:
The PCB layout for the digital IO circuit.
The PCB layout for the digital IO circuit.


== Regbot ==
== Robobot ==
 
=== Circuit diagram ===
 
[[File:PCB_circuit_8.5.png | 900px]]
 
Figure 3. The Robobot circuit for version 8.5 (circuit is the same as version 8.4).
 
=== PCB ===
 
[[File:PCB_layout_8.5.png | 900px]]
 
Figure 4. PCB with more trace details.
 
=== PCB view ===
 
[[File:PCB_foto_8.5.jpg | 900px]]
 
Figure 5. Populated PCB with Teensy 4.1 and O-LED display.
 
=== PCB plugs and devices ===
 
[[File:PCB_foto_8.5_annotated.jpg | 900px]]
 
Figure 6. Connectors. The unused connectors are 2 I2C plugs (I2C and I2C1), an SPI plug (with a driver for AS5147), and a power ON-OUT that can be used to power other similar boards (connect to on-in).
 
=== PCB LEDs ===
 
[[file:PCB-leds-annotated.jpg | 800px]]
 
== Line sensor ==
 
=== Circuit ===
 
[[File:line_sensor_3.1_circuit.png | 700px]]
 
Figure 7. Circuit diagram for the line sensor. 8 sensors with a change amplifier and analogue output. The 18 LEDs provide the blinking light at the sample rate (on Regbot 1kHz).
 
=== Function ===
 
[[file:line-sensor-sensor-curve-2025.png | 400px]]
 
The sensor has a linear characteristic over almost 3 decades of background illumination.
If additional illumination is about 0.025 mW/cm^2, the sensor current will increase about 1 uA. This requires a constant voltage across the sensor.
 
[[file:line-sensor-circuit-2025.png | 400px]]
 
For sensor 1 (shown), Q1 ensures a constant voltage across the sensor D1. The illumination LEDs are turned on and off at half-sample intervals, this gives a current variation in the sensor. Q1 has a very high impedance, due to the gate capacitor, so the current variation through especially R4 (150kOhm) gives a voltage to the gate of Q4. This is amplified with a factor 4.5 to the output at ''ls_1''.
 
=== PCB ===
 
[[File:line_sensor_3.1_PCB_3D.png | 700px]]


[[File:regbot_6.3.png | 900px]]
Figure 8. The PCB in 3D view. The distance from the first to the last sensor is 12cm.


Figure 3. The Regbot circuit.
[[File:line_sensor_3.1_PCB.png | 700px]]


[[File:regbot_6.3_PCB.png | 900px]]
Figure 9. PCB layout.


Figure 4. Ecpected view of PCB.
== Raspberry PI pinout ==


[[File:regbot_6.3_PCB_2.png | 900px]]
[[File:Raspberry_Pi_GPIO_pins.png | 500px]]


Figure 5. PCB with more trace details.
Figure 9. GPIO pin numbers, the bottom 10 pins are used for the IO-board. Pin1 on the cable match Pi pin 31 (GPIO6).

Latest revision as of 13:02, 2 February 2025

Back to Robobot_B

Digital IO

Circuit diagram

Figure 1. The circuit diagram should ensure that each IO pin can function as both input and output. If input, then the pin has active pull down, i.e. for input to change, it must be pulled high, to at least 3.3V, but 5 or 12V will work too. If output, then a transistor is active when output is high, and can draw at least 1A from the 12V supply. The 5V and 3.3V can supply no more than 100mA.

PCB

Figure 2. The PCB layout for the digital IO circuit.

Robobot

Circuit diagram

Figure 3. The Robobot circuit for version 8.5 (circuit is the same as version 8.4).

PCB

Figure 4. PCB with more trace details.

PCB view

Figure 5. Populated PCB with Teensy 4.1 and O-LED display.

PCB plugs and devices

Figure 6. Connectors. The unused connectors are 2 I2C plugs (I2C and I2C1), an SPI plug (with a driver for AS5147), and a power ON-OUT that can be used to power other similar boards (connect to on-in).

PCB LEDs

Line sensor

Circuit

Figure 7. Circuit diagram for the line sensor. 8 sensors with a change amplifier and analogue output. The 18 LEDs provide the blinking light at the sample rate (on Regbot 1kHz).

Function

The sensor has a linear characteristic over almost 3 decades of background illumination. If additional illumination is about 0.025 mW/cm^2, the sensor current will increase about 1 uA. This requires a constant voltage across the sensor.

For sensor 1 (shown), Q1 ensures a constant voltage across the sensor D1. The illumination LEDs are turned on and off at half-sample intervals, this gives a current variation in the sensor. Q1 has a very high impedance, due to the gate capacitor, so the current variation through especially R4 (150kOhm) gives a voltage to the gate of Q4. This is amplified with a factor 4.5 to the output at ls_1.

PCB

Figure 8. The PCB in 3D view. The distance from the first to the last sensor is 12cm.

Figure 9. PCB layout.

Raspberry PI pinout

Figure 9. GPIO pin numbers, the bottom 10 pins are used for the IO-board. Pin1 on the cable match Pi pin 31 (GPIO6).