@Pimousse It’s true that the VESC logic is 3.3V, however I remember reading someplace that it is 5V tolerant. Of course, it would be best to use a voltage divider or a level converter to be sure. I would love some more thoughts on this.
Thanks, I will take a look and probably will implement the divider on the board I’m current working, the think is, the divider does nothing when the STM sends the 3,3V to the arduino, for this we would need an level shift ic
Hmm, I can’t seem to get my OLED display to show anything. The one on the parts list doesn’t have the same pinout as on the schematic… Mine has GND VCC SCK and SDA. An I2C scanner I ran detects the display still, but its just not working? Any help?
@SeeTheBridges SCL is a typing error on my side, it should be SCK If you have connected it in the same manner as on the schematic, it should work. It’s possible that the display is broken they are quite fragile. Otherwise, I would check the connections. It should be as follows:
anyone need limit switches or trigger switches? i got a lot extra because i bought in bulk. if you need any, i only charge a dollar + shipping, compared to being $3
I finally got it working, but now the display is just hanging on Esk8 remote…any advice?
EDIT: My 3V3 was shorting to my D13. Missed a bit of solder on the back. Got a mostly working remote now. I can’t seem to cycle through the settings if I try to go into the remote settings though…
About VESC PPM, why don’t you use UART comm for driving the VESC ?
VescUartControl library has functions for that (VescUartSetCurrent & VescUartSetCurrentBrake).
Without modifying the library you can only get it to work on one VESC, the slave won’t do the same thing as the one connected to the Arduino. You would need to send a special “transmit this also over can” byte when setting the current which isn’t implemented and I don’t really know how to do it.
@SeeTheBridges Great! Well, it’s probably an issue with your magnets or the placement of your hall-sensor. If the magnets aren’t strong enough, the hall sensor will not return a high or low enough value. You have to tweak the min and max hall sensor values. I am adding a Hall sensor calibration function in the newest software update, which should be ready by Monday
Otherwise if you can’t wait, you will have to go to the function controlSettingsMenu() and change the value 150 to a higher value (try with 250).
@Howardzinn hanks for the link i just made an order, they are much cheaper than the ones I found from Uk
complete arduino noob here. i installed 3 extra libraries and when i verify/compile the transmitter code i get some red colored message i guess its a warning saying:
D:\Documents\Arduino\libraries\VescUartControl-master\VescUart.cpp: In function ‘int PackSendPayload(uint8_t*, int)’:
D:\Documents\Arduino\libraries\VescUartControl-master\VescUart.cpp:139:21: warning: converting to non-pointer type ‘uint8_t {aka unsigned char}’ from NULL [-Wconversion-null]
messageSend[count] = NULL;
does it look like theres problem? thanks for any help i have no idea whats going on
edit: when i open the transmitter.ino file and verify it for the first time it always gives me that warning but second verify comes out clean… weird. i guess its allright.