vesc arduino display problems

Sandroforms

100 mW
Joined
Jan 8, 2023
Messages
39
Guys, I made a display project to be used with VESC, using an ST7735 display connected to an Arduino Nano, and in this Arduino, I also used a KY003 Hall sensor, to read the speed of a rear wheel of my bicycle, the display shows the speed of the rear wheel, the temperature of the motor, the controller, and the battery charge, but I'm having some problems that must be interference, could someone help me? I used the TX, RX, 5V, 3V, GND and ADC1 pins of the VESC COM port, to obtain the VESC reading, and also to use the accelerator, but when I activate the accelerator, random numbers appear on the display, and it ends up interfering with the data, would some type of hardware be necessary to avoid this interference? I heard that it would be necessary to use a filter on the vesc to use the correct tx rx data, what would this filter be like?
 
serial interfaces are generally 1:1 not 1:n or n:n so if you have a serial accelerator connected to an established 1:1 serial connection both original parties to the connection will receive (if listening) whatever the late comer injects. So any 'filtering' would be in the nano s/w:
1) differentiating the source of any signals received vesc or accelerator, and if intended to work this n:n? way there will be some way to id distinct 'objects'
2) ignoring or using the input....

OR perhaps establish a s/w serial port on the nano connect that to the accelerator device and echo any input received through to the vesc?

edit Hang on a 2nd time.. doh.. you may have the accelerator rx an tx connections switched or the accelerator tx connected to the vsec tx not rx! so your sending to the nano and not the vesc!!

Though cant say im familiar with serial accelerators? perhaps i have completely misunderstood??
 
Last edited:
interfaces seriais são geralmente 1:1, não 1:n ou n:n, então se você tiver um acelerador serial conectado a uma conexão serial 1:1 estabelecida, ambas as partes originais da conexão receberão (se estiverem ouvindo) o que o retardatário injetar. Então, qualquer "filtragem" estaria no nano s/w:
1) diferenciar a fonte de quaisquer sinais recebidos vesc ou acelerador, e se pretender trabalhar desta forma n:n? haverá alguma maneira de identificar 'objetos' distintos
2) ignorar ou usar a entrada....

OU talvez estabelecer uma porta serial as/w no nano, conectá-la ao dispositivo acelerador e ecoar qualquer entrada recebida para o vesc?

edit Espere um pouco... doh... você pode ter as conexões rx e tx do acelerador trocadas ou o tx do acelerador conectado ao tx vsec, não ao rx! Então você está enviando para o nano e não para o vesc!!

Embora não possa dizer que estou familiarizado com aceleradores seriais? Talvez eu tenha entendido completamente errado??
As for the connections, I left it connected accordingly, I had no problems with that part, the problem I'm having is that most display projects for VESC usually use the motor speed, which comes directly from the VESC, and that doesn't cause problems, but in my project, I only want the temperature information from the controller and the motor, and for that, I had no problems with the display, but when I put the hall sensor to send the speed signal from the bicycle wheel, and not from the motor, then the problems start, some kind of interference happens when the accelerator is used, leaving all the information mixed up on the display screen, this must be happening due to some kind of magnetic interference, and to solve this, I know they use ferrite rings or something like that, but I don't know where to put these filters
 
Back
Top