ProjectNeura / LEADS

Enable your racing car with powerful, data-driven instrumentation, control, and analysis systems, all wrapped up in a gorgeous look.
https://leads.projectneura.org
Apache License 2.0
257 stars 54 forks source link

LEADS First Assembly #92

Closed ATATC closed 6 months ago

ATATC commented 7 months ago

@ProjectNeura/vec-instrumentation

As the development of LEADS reaches a certain stage, it is time to put our results into practice. Before entering the formal assembly, we first need to complete the following adjustments.

Afterward, the assembly will take place hopefully in the following order.

  1. Wheel speed sensors onboard and tested
  2. Wheel speed subsystem Arduino onboard and tested
  3. Raspberry Pi onboard and tested
  4. Display onboard and tested
  5. GPS onboard and tested
  6. Voltage sensor onboard and tested
  7. Power subsystem Arduino onboard and tested
ATATC commented 7 months ago

Please confirm a date to do the soldering work.

qmascarenhas commented 7 months ago

Tuesday April 9 after school? This can really be done any day after school once I show you what you need to do (assuming you have not soldered before).

qmascarenhas commented 7 months ago
ATATC commented 7 months ago

It already has a small heat sink. We can design an air deflector though.

ATATC commented 7 months ago

I don't think the screen case is necessary because the control buttons are behind the screen. But for aesthetic reasons, we can design a border to hide the PCB.

ATATC commented 7 months ago

Tuesday April 9 after school? This can really be done any day after school once I show you what you need to do (assuming you have not soldered before).

Sure. I have soldered before. I just don't have the equipment and site here.

ATATC commented 7 months ago

By the way I figured out that the touchscreen needs the USB power cable to connect to the raspberry Pi. We definitely need some USB hubs.

qmascarenhas commented 7 months ago

Since the cameras and the OBS-Teams call is separate from the main LEADS s/w (I'm assuming we'll be able to launch all that with a script instead of manually), we can put the cameras on a hub which would leave us 3 usb ports on the rpi4: 1 - Touch Display 2 - GPS dongle 3 - open

ATATC commented 7 months ago

Here's what we need to connect to the USB ports. Each listing takes one port.

  1. Camera 1
  2. Camera 2
  3. Camera 3
  4. GPS receiver
  5. Wheel speed controller
  6. Power controller
  7. Display power
  8. Display touchscreen
  9. Keyboard
  10. Mouse
ATATC commented 7 months ago

We need 4x 3-port USB hub.

ATATC commented 7 months ago

Do we have enough USB hubs? If not I can go get some tmr.

qmascarenhas commented 7 months ago

We've got lots of hubs at school that are not being used that we should be able to use. Please don't buy anything.

ATATC commented 7 months ago

When will we be ready to install the system on VeC99?

qmascarenhas commented 7 months ago

I'm hoping we will have VeC99 on the road by the end of next week. We need to put an assembly plan together for your system first in terms of final layout on VeC99. Can you put a draft plan together that I can review?

  1. Target the area under the hood.
  2. Layout components other than the display, powerpack and sensors on a panel that will fit on the underside of the hood at an angle. We will cut some vents in the top of the front panel of the nose to direct some air flow under the hood for cooling.

ps: your usb hubs are in (I've put them with the rest of your stuff under the nose in rm217. I have not tested them.

ATATC commented 7 months ago

The new USB hubs have been tested and the system worked well.

ATATC commented 7 months ago

@qmascarenhas When do you think the car is going to be ready so that we can film a video demonstrating the system.

qmascarenhas commented 7 months ago

@ATATC @fz20181223luogu We need to test the MS-Teams call with the OBS virtual cam combining the images from Cameras 1, 2 and 3.

qmascarenhas commented 6 months ago

@ATATC can you bring the HDMI cable that I gave you in tomorrow? I'll swap it for the one that's on VeC99 - it's just better for cable routing under the hood and is a straight cable without need of adapters.

ATATC commented 6 months ago
ATATC commented 6 months ago

@ProjectNeura/vec-instrumentation After tons of bug fixes now finally the program can start itself when the Raspberry Pi boots up.

ATATC commented 6 months ago

@qmascarenhas What do you think about giving @fz20181223luogu a chance to touch the core of LEADS, that to let him follow the user guide to reinstall the operating system for the other Raspberry Pi?

qmascarenhas commented 6 months ago

I concur with this plan @ATATC - I would also like to do something similar with @HaydenHour but like you he writes the AP Physics 1 exam on Friday so perhaps after that. I will recommend him to get his own raspberry pi so he can play around with it over the summer.

ATATC commented 6 months ago

May 21

ATATC commented 6 months ago

@qmascarenhas Sir, when you do the installation today can you leave a secondary HDMI port and cable for quick debugging purposes?

qmascarenhas commented 6 months ago

Not quite sure what you mean by "leave a secondary HDMI port and cable".

ATATC commented 6 months ago

I mean plug another HDMI cable into the Raspberry Pi and put the other end somewhere accessible without dismantling the car.

qmascarenhas commented 6 months ago

ok. I'll need to get another cable though - I only bought one the last time.

ATATC commented 6 months ago

Sure. I'm not at school today but keep me in the loop with the installation progress.

ATATC commented 6 months ago

@qmascarenhas Any update today?

qmascarenhas commented 6 months ago

I ran out of time to put everything together. I made the cables for the wheel speed sensors. I'm going to try getting in early tomorrow so I can get some work done before P1.

ATATC commented 6 months ago

I can do some work during P3. I'll finish the system installation on the original Raspberry Pi that we'll use on the car and finish testing the voltage sensor. But we are still struggling to put everything under the hood if the car is used for practice tomorrow after school, aren't we?

qmascarenhas commented 6 months ago

The plan is have everything prepped for installation on VeC99 after they bring the vehicle back to the shop from practice. We should be able to pre-test everything on the cart (not ideal but it is what it is) and do our final test on the vehicle after installation. It's going to be a late one tonight.

ATATC commented 6 months ago

@qmascarenhas I've included an alternative option for us in the new release.

qmascarenhas commented 6 months ago

A week behind schedule, but LEADS finally installed on VeC99 for full system testing.imageimageimageimageimageimageimage

ATATC commented 6 months ago

@qmascarenhas Sir, did you connect the wheel speed sensors according to the User Guide? Because it'll affect the matching of diameter configs.

qmascarenhas commented 6 months ago

No - probably not. I just figured you had the data pins on the arduino dictated in a config file. Sorry - forgot to check could this be the cause of our erroneous speed readings? At least one wheel should be reading the correct speed if that's the case.

qmascarenhas commented 6 months ago

@ATATC I'm going to do some further testing of LEADS on VeC99 after exams and before my summer break starts. Can you spare some time after your last exam to run me through the setup of the camera feeds for the livestream? That's the only thing pending for us to test live. I'm going to create another issue titled "Detailed Testing of LEADS Analog Sensors" that I will own for now and then assign it one of our junior members after I detail a test plan. If there's one thing we need to spend more time on before releasing LEADS on VeC99 to the racing team it would be a full functional test. We can title that issue "Release of LEADS on VeC99 to VeC Racing".

ATATC commented 6 months ago

My last exam is at 6.12 in the afternoon (due to the conflict between Bio and Math). I'm free that day afterward. I'll also finish the documentation for GStreamer.

ATATC commented 6 months ago

Sorry, in fact, the documentation is complete: https://leads-docs.projectneura.org/en/latest/vec/user-manual.html#install-gstreamer-optional