2 phase synthesised sinewave generator for synchronous motor drive

The PCB for the 2-channel amplifier has gone together fine, so here are the latest schematic and gerbers.

I have some amp PCBs that I can send out too, £1.50 each + postage.

I also have another batch of sinewave PCBs available (a tweaked version with easier R3 placement for the 3rd phase).
 

Attachments

  • 20210317_210756.jpg
    20210317_210756.jpg
    122 KB · Views: 339
  • Schematic_spinamp.pdf
    94.4 KB · Views: 216
  • Gerber_PCB_spinamp_v1.0.zip
    67.2 KB · Views: 114
Last edited:
Thanks - here's the re-posted #87:

I've made a fairly major update to the firmware of this project, to support some new options and features.

It can now support an SSD1306 based 128x64 OLED display as an alternative to the Bluetooth/RemoteXY interface:

OLED.png


(Re-)Added a 'reference' signal output that can be looped back into the TACH input for testing/debugging (as is being used in the pictures above).

A new 'soft-start' feature which ramps the amplitude up over ~2s:

ref_softstart.jpg


Although I've reduced the computational load of the sinewave generation to ensure the buttons and display remain nice and responsive, spectral purity of the full-amplitude sinewave is still good:

ref5.png


I've got a bit of tidying up of the firmware to do, then devise a neat solution for connection of the display (probably using extended headers on the required pins), after which I'll update the design information for this updated version.

- Richard
 
Last edited by a moderator:
Last edited:
Member
Joined 2014
Paid Member
I've built 2 of the ones that use the RemoteXY app and am anxious to build this new version. I built one for a friend with an iPhone and it didn't work reliably so he had to purchase a used Android phone. This new version will solve that problem.
 
I'm happy with the update for the OLED display, so have updated the first post with the latest build guide which includes the OLED display option (also updated for the v1.1 boards), plus updated Gerbers.

For the firmware, please contact me directly so I can make sure you have the latest version.

New display:

OLEDa.png


Included in my testbed (this is set up to drive a Rega 24v motor directly from the original Rega PSU, using the amplifier board posted earlier in this thread):

20211216_230048542_iOS.png
 
Member
Joined 2014
Paid Member
I am having trouble with the tachometer. It's working intermittently. I'm using a Roadrunner hall effect sensor. I seem to recall that this sensor wants 5 V but the system is supplying 3.3 V. Could this be a problem? If so, what is a recommended sensor.
 
Problem solved. My power supply to the Arduino was set for 5V which wasn't enough for the on board regulators to produce 5V on the board itself. Upped it to 9 v and all is well.
Ah good. Yes you need to supply either 5v to the 5v pin, or 7-12v to the barrel jack for the onboard 5v regulator.
Is there any way to retain the settings (frequency especially) when power is lost?
Every time the frequency or phase is adjusted, the value is saved to the non-volatile memory in the Arduino, so this should be happening already. Does this not appear to be happening for you?