epfl-cs358 / 2024sp-helping-hand

2 stars 0 forks source link

Controlling the motors from the ESP #18

Closed malenraychev closed 2 months ago

malenraychev commented 2 months ago
unglazedstamp commented 2 months ago

The power supply provides 9V but the Nema-14 motors require 8V, so we will need some DC to DC converters, I saw in the handbook that there is the LM2596 buck converter. Is this one or another converter in stock ? @feeds

feeds commented 2 months ago

@malenraychev Would be the one who knows!

malenraychev commented 2 months ago

Hey guys, yes there are buck converters in stock, unfortunately I am personally on UNIL campus today, but someone might be in DLL for their office hours and can provide you with one. Otherwise I can be there tomorrow evening to give you one.

Cheers,

@unglazedstamp

unglazedstamp commented 2 months ago

Hello, thank you for the quick answer. Let me know when I can come in DLL to get the buck converter, I should be on the campus at least until 19h. Otherwise I will come again on Monday.

@malenraychev

malenraychev commented 2 months ago

I can be at DLL at 17-17:15

malenraychev commented 2 months ago

@unglazedstamp

unglazedstamp commented 2 months ago

Thank you, I will be there. @malenraychev

malenraychev commented 2 months ago

I'm at DLL atrium @unglazedstamp

unglazedstamp commented 2 months ago

The discovery protocol of the plotter controller is ready to merge at #19

unglazedstamp commented 2 months ago

I'm able to control the motors but I can't include the motors control library and the web-server library in the same program.

pinar-oray commented 2 months ago
pinar-oray commented 2 months ago

@unglazedstamp

unglazedstamp commented 2 months ago

The motors, the servo and the ESP are powered by the same power supply. The motors can be used with the go-to endpoint (i.e. http://IP_ADDR/go-to?x=100&y=300). The plotter remember the coordinates on restart. The servo can be used with the short-press and long-press endpoints.

Next things that need to be done: