Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gen2.1.14 (ex2.16) (Razor) #42

Open
RoboDurden opened this issue Dec 14, 2023 · 3 comments
Open

Gen2.1.14 (ex2.16) (Razor) #42

RoboDurden opened this issue Dec 14, 2023 · 3 comments

Comments

@RoboDurden
Copy link
Owner

Thanks to @andyshmandy

master-front
pin tracing

This board seems to have only one dual opAmp so no overall current dc. And only 2 low-side phase currents (not needed for this gen2.x firmware but needed for the SimpleFOC firmware).

todo:

// ADC defines
#define VBATT	PA4					// todo
#define CURRENT_DC	PA6		// todo	robo: as this layout only has one dual opamp (for 2 low side phase currents) this board might not have a overall dc current adc

// Self hold defines
#define SELF_HOLD	PB2		// todo

// Button defines
#define BUTTON	PC15		// todo

but already compiling successfully.

@andyshmandy
Copy link

@RoboDurden thank you for writing up this issue. Since this board is mostly mapped out I decided to flash the MCU with the 2-16 code changes. I was digging around and it turns out that I can't find the motors for this board. To be honest, I think I salvaged the bearings from the motors for another project. Anyway, the motors should be somewhat universal so I tried hooking up a different motor but I was not able to find a hall sensor combination that would drive the motor. The motor I tested happened to be 300 watts and this 2.16 board layout was originally paired with a 25v battery. I had my Constant Current power supply set to 25v and 1.0 Amps. I increated the voltage to 32 and the amps to 2.0 and still didn't have any success when going through the 6 hall sensor combinations. I may try a lower wattage motor tomorrow. By the way, the Red, Green, and Orange LEDs blink and change if I move the motor manually. I checked the MOSFETS for shorts and found none. Any Ideas?

I was not able to get the arduino serial monitor to display any output from the board. It is just showing garbage. I am not sure what I am doing wrong.

On another note, I have another board layout that I have started to trace that has the same MCU as this one. I will open another issue and include some photos at sometime this weekend.

Thank you so much for your help! I am really learning a lot!

@andyshmandy
Copy link

By the way, the photo above with the traces, the part that is in shadow is GND on the other side of the board. I forgot to turn off that layer when I exported the image from gimp. I would like to upload the Gimp file to the Schematics folder so that the work I did tracing might be helpful to someone else and they can take advantage of the layers. The file of over 40MB though :-(

@RoboDurden
Copy link
Owner Author

RoboDurden commented Dec 16, 2023

I must keep the repo as small as possible so downloading the complete repo is possible for everyone..

Is the motor at least vibrating and you only do not find a permutation that works smoothly ?

Garbage on UART usually means wrong baud rate.
Maybe that board runs on 48 Mhz or 72 MHz.
If You have an oscilloscope you can measure the pulses to verify the 19200 baud.

All motors are compatible I think. Not the sockets.
This PA5 was the inside led ?

@RoboDurden RoboDurden changed the title Layout 2.16 (Razor) Gen2.1.14 (ex2.16) (Razor) Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants