I got the Adafruit one, so more credit to Lady Ada!
TBH the only thing I can find in the fuses as per the datasheet that is relating to USB is the factory calibration data - there shouldnāt be any need to change that.
It does require a specific clock setup for USB to work - but the boot loader should take care of that. Is your oscillator setup the same as for the feather?
Other than that the USB port wants certain resistances on its ID pin, I assume you have those? The differential trace impedance is important in theory, but I hear you can more or less ignore it for the low speed USB used by the MCUs.
Hay, I found the bug. Its a hardware bug. I assumed the USB plug was soldered properly in, but it turns out it is a wrong part, compared to the footprint. Quite embarrassing. Good the USB lines are broken out.
Unfortunately its not al well and dandy. I have been to optimistic about the step-down regulator design. Its not working as intended. I should be able to solder in the power for the bridge driver and test, but it is somewhat a setback. Will find another solution. Im tempted to use a integrated step-down module but they are expensive. There are several other small mishaps, so have to order PCB again no matter what. I guess this is the process of developing hardware. Human error factor The LED is blinking away in RGB colors, so there are some progress. This means I can test the hall sensors on the analog inputs.
Hoocked up 12v from my 3D printerĀ“s PSU. The converter steps down to 10v and the 500mA LDO steps down to 5v. Unfortunately the enable pin on the USB power switch does not turn on when floating. The 3.6v LDO does work when USB and PSU (12v) is connected. So no issues when connected to PC and PSU is ON!
The Half-bridges and gate drivers are functioning.
Current sensor are reacting to led test setup, but should be inverted. At no current the analog value (10bit) are around 450. This value decreases when PWM on the switches is increased.
How should I set up the current sensors?
Here is the LED test rig. Will need to borrow a photon flux sensor. It would be interesting to se a comparison between a fully blue and red lamp vs mixed white, blue and red.
[Edit] I see there is a significant voltage drop on the PSU (main power). The PSU will start to make this high pitch sound as if it is overloaded. This is when I turn op the current on the LEDs. I have a 500W PSU somewhere in a old cabinet. Think I will use that.
Just soldered another 0.03 resistor on top, so it should have 0.015 ohm resistance now with a 50 gain, on a 24v PSU with large caps.
I do se some movement like a rotation, when the initFoc does sensor calibration, it does not seem to compute the actual movement or maybe the phases are not setup right. Hmmm I thought it was supposed to be simple