This document has a table (bottom) that will be filled out each time a member of the electrical team is on-site. It will help us know what’s going on and if we are following the timelines on this sheet:
https://docs.google.com/spreadsheets/d/14eVjn5qeHOSkJxxsRyDxVjPF8R5smcw8_9Mv0pXNogo/edit?usp=sharing
Date | Individual | Progress | Concerns |
---|---|---|---|
sept. 18 | Jess | Got CANable adapters working, updated verified mcp2515 works on MCI rev 5 that has the CANable adapter soldered to it. Questions:
| CANable adapter should probably not be soldered to the board in future. Also had to sacrifice a system CAN terminating resistor in the debug process, sorry Blockers:
|
sept 21 - 9am | Aashmika + Kristen |
|
|
sept 25 | Jess | Figured out how to connect steering stalk to rev 4, tested some firmware
|
|
Oct 11 | Jess | Found source of CC DECR not working on steering. We implement interrupts in firmware using the STM32 external event input interface, which only has 16 lines. We set this up in firmware so we can register an interrupt on each pin number, e.g. PB1 and PA2 works but if you register PB1 then PA1 registering for PA1 will fail. The regen button and the CC on/off button still don’t consistently trigger interrupts. ADC values for CC on/off are consistently ~1600, with no noticeable variability when the button is pressed. The interrupt never triggers. ADC values for regen toggle are ~1600 when the button is unpressed, then they jump to ~1800 when the button is pressed. Occasionally the interrupt triggers, but not consistently. To have minicom ADC and interrupt logging, use branch Couldn’t find the center console board. Tried switching cables for driver display, but it seems pretty busted. |
|
Oct. 12 🦃 | Jess | ===== DAY ===== Tested MCI with a bugfix from MPXE validation, the flow for setting drive output → getting pedal commands seems to work now. Precharge used to flip PB0 properly, but not PA10 (I was told this was because it only flips PA10 if the relay is connected, which it wasn’t, so this was expected behaviour). Now, precharge doesn’t seem to flip either, but this is under progress by hardware at the moment so hopefully will be fixed soon. Aside from that, MCI counts as validated. ===== EVENING ===== Steering: decided it’s not worth fixing it in hardware (too many jumpers required), but stuff sorta works intermittently. Functionality confirmed in firmware, but need to fix up actual project to work in all functionality. Decided DRL toggle is the lane assist button (PA6) and horn (PB1) pin needs to change to allow CC DECR (PA1) to have an interrupt. MCI: drive fsm + pedal → mcp2515 output flow all works. Precharge logic being validated by hardware. Power distro: learned how to set it up for testing, will work on it tomorrow w/ Ryan. Power select: things seem ok, seems like there’s a lot of problems in hardware. Some preliminary test results shown below: Readings for pins with the front power distro wires hooked up to e-load @ 0.5A (12 volts shown) and aux power wires hooked up to power supply & 12V. =============== rand# 971464216 DIGITAL: VALID_1 - 1 VALID_2 - 1 VALID_3 - 0 DCDC_FAULT - 0 ANALOG: DCDC_I - 458 DCDC_T - 0 DCDC_V - 1817 PWRS_I - 602 PWRS_V - 1532 AUXB_I - 0 AUXB_T - 0 AUXB_V - 2259 | |
Oct. 13 | Jess + Aashmika | Worked on power distro, work is on branch bts7200-messs
a different way to fix it that doesn’t involve any volatile variables would be to use while (!ADC_GetFlagStatus(ADC1, ADC_IT_EOSEQ)) then not clear the EOSEQ bit at the end of the irq handler and instead clear it after the while loop it looks to me like ADC_ClearITPendingBit and ADC_ClearFlag do exactly the same thing Problem was the load switches couldn’t handle eload in constant current mode and were overload protecting (greater than 500 mA @ 12V for example). Putting eload into constant resistance mode allowed load switch to work consistently. Also added initialization to pin on PCA9539r to set it properly. We might have destroyed U6 and U5 from the overloading with constant current mode as they are constantly enabled now. We also shorted a controller board (3v3 or 12v) and it died. RIP. | Aashmika cries. Couldn’t work on MCI. |
Oct 14 | Jess | Power selection, working on branch The “valid” signals work for aux and DCDC, i.e. they’re all 1 except valid_3 when aux is plugged in, and all 1 except valid_2 when dcdc is plugged in. Thermistors didn’t seem to be populated. Power distro, working on branch | |
Oct 15 | Jess + Aashmika + Ricky | Driver Display: did some setup on raspi, working on getting Precharge: Having problems with precharge and testing to see what could be the issue. Checked fets Q2, Q4 and Q5 all working fine, trying to figure out how the SR latch works. Checked to see if the capacitor is connected to the board and it is connected. Testing the And_out (yellow), reset pin (blue), and SR latch output (purple). Evening shift: Got the driver display app running on the display, steps here: Driver Display setup |