Kart/Motherboard
Axel.amand (Talk | contribs) |
(→PMOD) |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{TOC right}} | {{TOC right}} | ||
− | The [[Media:Kart_motherboard_schematic.PDF|Kart motherboard]] will receive any compatible [[Kart/Daughterboard|FPGA daughterboard]] such as the AGLN250 one used during the Kart project. | + | The [[Media:Kart_motherboard_schematic.PDF|Kart motherboard]] will receive any compatible [[Kart/Daughterboard|FPGA daughterboard]] such as the AGLN250 one used during the Kart project and redistribute I/Os. |
+ | It also powers the system. | ||
− | [[File:Kart_motherboard_pcb.jpg|center| | + | [[File:Kart_motherboard_pcb.jpg|center|700px|Kart motherboard PCB]] |
== Power == | == Power == | ||
− | The main power entry point of the system is through the motherboard by using the two battery connectors with two 6V / 2400mAh packs put in series. | + | The main power entry point of the system is through the motherboard, either by using the two battery connectors with two 6V / 2400mAh packs put in series, or the charger port with a 12V input from a regulated DC supply. |
+ | |||
The 12V is then reduced to a 5V rail through a buck converter. | The 12V is then reduced to a 5V rail through a buck converter. | ||
− | + | ||
+ | Finally, the [[Kart/Daughterboard|daughterboard]] is fed with the 5V to provide a 3.3V rail. | ||
==== Charging ==== | ==== Charging ==== | ||
− | + | The '''Charger''' connector is used with a DC supply to test the system, but also for an NiMh charger to be connected. | |
{{WarningBox|content= | {{WarningBox|content= | ||
Make sure to shut the circuit off while charging to avoid higher voltage on the 12V rail. | Make sure to shut the circuit off while charging to avoid higher voltage on the 12V rail. | ||
Line 23: | Line 26: | ||
A switch must be connected to the corresponding port to power the board. | A switch must be connected to the corresponding port to power the board. | ||
− | + | The 12V is then transported to the PMODs and the buck converter through a 3A-T fuse. | |
{{WarningBox|content= | {{WarningBox|content= | ||
− | Please test the circuit with a DC power supply with current limitation capabilities. | + | Please test the circuit with a DC power supply with current limitation capabilities (1 [A] should be far enough while no mechanical constraint is applied on the motors). |
If the fuse breaks, check for any short-circuit before replacing it and power-cycling the circuit. | If the fuse breaks, check for any short-circuit before replacing it and power-cycling the circuit. | ||
Line 51: | Line 54: | ||
The board allows for multiple I/Os to be plugged following the [https://digilent.com/reference/pmod/start PMOD] wiring, lightly modified for the Kart, under the following form: | The board allows for multiple I/Os to be plugged following the [https://digilent.com/reference/pmod/start PMOD] wiring, lightly modified for the Kart, under the following form: | ||
* 4 full connectors for direct plug (PMODs 5 to 8) | * 4 full connectors for direct plug (PMODs 5 to 8) | ||
− | * 3 full connector for flat-cables | + | * 3 full connector for flat-cables (PMODs 1, 3, 4) |
− | * 1 half connector for flat-cable | + | * 1 half connector for flat-cable (PMOD 2) |
{{WarningBox|content= | {{WarningBox|content= | ||
− | PMOD8 pins 6 to 8 cannot be used with the AGLN250. | + | PMOD8 pins 6 to 8 cannot be used with the AGLN250 FPGA. |
In such case, use the connector on one row (the upper one). | In such case, use the connector on one row (the upper one). | ||
}} | }} | ||
The pins are described on the board itself and correspond to the following: | The pins are described on the board itself and correspond to the following: | ||
− | [[File:Kart_pmod_pining.jpg|center| | + | [[File:Kart_pmod_pining.jpg|center|500px|Kart custom PMOD pining]] |
+ | |||
+ | Two identical [[kart/Motor Pmods|motor driver]] Pmods are furnished. | ||
+ | They allow to control the [[Kart/DC motor controller|propulsion DC]] | ||
+ | and the [[Kart/stepper motor controller|steering stepper]] motors. | ||
+ | |||
+ | Various sensors can be wired as [[Kart/Sensors|seen here]]. | ||
+ | |||
+ | At all time, ensure there is '''NO VOLTAGE FEEDBACK''' from anything else than 3.3V on the I/Os. Use a dedicated power board if needed. | ||
+ | |||
+ | The preferred connection is shown in the following picture: | ||
+ | [[File:Pmod cabling.jpg|center|500px]] | ||
+ | |||
+ | Alternatively, flat cables can be used, as shown in the following picture: | ||
+ | [[File:Pmod long cables cabling.jpg|center|500px]] | ||
+ | In this case, the I/O constraints file has to be updated ! | ||
==== FPGA reset ==== | ==== FPGA reset ==== | ||
Line 79: | Line 97: | ||
Trying to communicate simultaneously from the BLE module and the PC will result in undefined behavior (surely scrambled and wrong data read by the FPGA). | Trying to communicate simultaneously from the BLE module and the PC will result in undefined behavior (surely scrambled and wrong data read by the FPGA). | ||
− | + | One can listen to what the FPGA communicates to the BLE module by opening a serial terminal on the USB-C COM port, but not the invert. | |
}} | }} | ||
+ | |||
+ | [[Category:Kart]] |
Latest revision as of 17:22, 30 August 2022
|
The Kart motherboard will receive any compatible FPGA daughterboard such as the AGLN250 one used during the Kart project and redistribute I/Os. It also powers the system.
Power
The main power entry point of the system is through the motherboard, either by using the two battery connectors with two 6V / 2400mAh packs put in series, or the charger port with a 12V input from a regulated DC supply.
The 12V is then reduced to a 5V rail through a buck converter.
Finally, the daughterboard is fed with the 5V to provide a 3.3V rail.
Charging
The Charger connector is used with a DC supply to test the system, but also for an NiMh charger to be connected.
Make sure to shut the circuit off while charging to avoid higher voltage on the 12V rail.
The charge rate should be of around 0.05C => 120mA here.
Power-on
A switch must be connected to the corresponding port to power the board. The 12V is then transported to the PMODs and the buck converter through a 3A-T fuse.
Please test the circuit with a DC power supply with current limitation capabilities (1 [A] should be far enough while no mechanical constraint is applied on the motors).
If the fuse breaks, check for any short-circuit before replacing it and power-cycling the circuit.
A green LED shows the board power status.
Power state
An I2C dual-inputs ADC converter (MCP3426A0) is present on the board to read both the battery voltage and the current consumption.
Access the data
The chip is read from the FPGA each second through dedicated I2C lines.
The information can be read from the smartphone at will by accessing the corresponding registers.
Daughterboard
The daughterboard is mounted through an SODIMM-200 (DDR2 RAM) connector.
I/Os
PMOD
The board allows for multiple I/Os to be plugged following the PMOD wiring, lightly modified for the Kart, under the following form:
- 4 full connectors for direct plug (PMODs 5 to 8)
- 3 full connector for flat-cables (PMODs 1, 3, 4)
- 1 half connector for flat-cable (PMOD 2)
PMOD8 pins 6 to 8 cannot be used with the AGLN250 FPGA. In such case, use the connector on one row (the upper one).
The pins are described on the board itself and correspond to the following:
Two identical motor driver Pmods are furnished. They allow to control the propulsion DC and the steering stepper motors.
Various sensors can be wired as seen here.
At all time, ensure there is NO VOLTAGE FEEDBACK from anything else than 3.3V on the I/Os. Use a dedicated power board if needed.
The preferred connection is shown in the following picture:
Alternatively, flat cables can be used, as shown in the following picture:
In this case, the I/O constraints file has to be updated !
FPGA reset
A small button allows the user to reset the FPGA from the motherboard.
UART sniffers
Both Tx from the FPGA and the BLE module can be sniffed by wiring a dedicated UART-USB chip to the provided headers.
BLE Socket
The Bluetooth - USB dongle can be inserted in its dedicated socket to control the Kart with a smartphone, or easily removed to be plugged in a PC directly.
One can emulate the BLE module with the help of a custom serial interpreter by simply plugging the daughterboard in a PC through the USB-C. The communication is merged between both the PC and the BLE module.