|
|
(179 intermediate revisions by 10 users not shown) |
Line 1: |
Line 1: |
− | {{TOC right}}
| + | All of the information is now available on a dedicated website. |
− | The Kart module is a Summer School module for students at the end of the first year.
| + | <br> |
− | | + | Please visit https://ss1.hevs.io/. |
− | == System Architecture ==
| + | |
− | | + | |
− | The kart is controlled by a smartPhone via BlueTooth.
| + | |
− | | + | |
− | A BlueTooth receiver on the kart control board communicates via an [[kart/serial link|RS232 serial link]] with the control board FPGA.
| + | |
− | | + | |
− | === BlueTooth communication ===
| + | |
− | A BlueTooth communication transfers serial port data.
| + | |
− | A receiver chip creates the RS232 signals for the FPGA.
| + | |
− | The [[kart/serial link#Serial link protocol|protocol]] defines how the [[kart/serial link#Registers|registers]] are accessed.
| + | |
− | | + | |
− | The FPGA receives following controls:
| + | |
− | * the propulsion DC motor speed and direction
| + | |
− | * the steering stepper motor target angle and step period
| + | |
− | * two LEDs
| + | |
− | The FPGA sends following information back:
| + | |
− | * the [[kart/battery level|battery level]]
| + | |
− | * the actual steering angle
| + | |
− | * the [[Kart/sensors/VCNL4000|distance sensor]] data
| + | |
− | * the [[Kart/sensors/SS311PT|hall sensor]] status
| + | |
− | | + | |
− | === Sensors ===
| + | |
− | * [[kart/sensors/VCNL4000|VCNL4000 i2c Distance/Ambience Light Sensor]]
| + | |
− | * [[kart/sensors/SS311PT|SS311PT Hall Sensor]]
| + | |
− | | + | |
− | === Board connectors ===
| + | |
− | The FPGA board has following connections:
| + | |
− | * a [[kart/connectors/Header|26 pin Header]] connector
| + | |
− | * a 9 pole DSub connector for RS232
| + | |
− | * the FPGA JTAG programming connector
| + | |
− | * the PIC RJ11 programming connector
| + | |
− | | + | |
− | === Boards ===
| + | |
− | For special designs, some boards have larger FPGAs:
| + | |
− | * Board 29 has a AGL125V5
| + | |
− | * Board 30 has a AGL250V5
| + | |
− | | + | |
− | Within the Actel Project manager, the settings of the FPGA have to be changed: in <code>Project Manager</code>, change FPGA type in <code>Project -> Settings -> Device -> Die</code>.
| + | |
− | | + | |
− | For the AGL250V5, pin 46 associated to <code>jtagIo[3]</code> is not available.
| + | |
− | Edit the <code>motorControl.pdc</code> constraints file and change the <code>jtagIo[3]</code> constraint to pin 43.
| + | |
− | | + | |
− | === To do ===
| + | |
− | Go to stepper end upon each reception of "set HW orientation" command.
| + | |
− | Don't go to stepper en at startup because "set HW orientation" command comes later than reset
| + | |
− | | + | |
− | Use the register to set the rate at which the FPGA sends status to the remote control.
| + | |
− | | + | |
− | Set-up a hall sensor wheel rotation counter.
| + | |
| | | |
| [[Category:Kart]] | | [[Category:Kart]] |