Tomdb
10 W
got my chip in yesterday, one quick question. Its an uart output soI can hook it up to an serial to usb converter, like an empy arduino uno board right? Or does it require the rs232 conversion?
The output from the chip is only serial data, not RS232 voltage levels, so no, you don't need RS232 as such, you can hook up the serial output to any 5V system.Tomdb said:Or does it require the rs232 conversion?
I have labview.Lebowski said:If you want to have a look at the internal motor controller variables while the motor is running, I use the attached Labview program. I know Labview is available on torrent sites but I myself use the old Labview 6.1 running under Linux, as was once distributed by a German computer magazine. Googling 'labview free demo' links to a 45 day free trial, but I have not tried that one myself.
LabView 2013Lebowski said:@ Arlo1, which labview version do you have ? Did you setup the RS232 port in Labview ?
You posted veriableviewer but I think the dashboard would help a lot as well.Lebowski said:Have a look here
https://www.ni.com/getting-started/set-up-hardware/instrument-control/serial-connect
In the labview I sent you at the left of the schematic view it should have a reference to the channel, i think on my computer it is number 5 but you can change that. Which one did i sent, the variableviewer or the dashboard?
Tomdb said:Thanks for the info. Will run over all my connections. I got a fuse right after the contactor.
However, the newest version chip does not need the phase voltage measurement right? So I do not have it connected, will turn off that check.
edit 31-12 3.40 pm
Sorted my connections, turned the check rotation to disable. It now switches to drive mode 1 however, at standstill the led for drive mode 0 flickers. Need to check if its due to the 5 volt line or its something else.
However when twisting the throttle it goes full into drive 0, makes me think its something else then the power. Plus need to accurately find out what the sensor range/signal is in mv/amp. Its an 5 volt sensor that is around 2.5 +/- 0.02v at 0 amps.
Could having the sensor reading be scaled incorrectly cause something like this?
Arlo1 said:You send veriableviewer but I think the dashboard would help a lot as well.Lebowski said:Have a look here
https://www.ni.com/getting-started/set-up-hardware/instrument-control/serial-connect
In the labview I sent you at the left of the schematic view it should have a reference to the channel, i think on my computer it is number 5 but you can change that. Which one did i sent, the variableviewer or the dashboard?
Arlo1 said:Lebowski.
You mention possibly removing the current sensor calibration. What if you add a feature that at every time the controller is reset or started it keeps all stages off while it looks at the current sensor voltages and set those to newtral.? I say this because I find mine to need to be recalibrated often to keep it from starting with a tick tick and bouncing between drive 1 and 2.
The problem with most current sensors is they need a voltage applied to produce the 2.5v at neutral but the 2.5v can be off a bit depending on all the power supplies. I have a supply for 5v for the brain one for 10v for the sensors and then 2:1 divider resistors. And if any of those components are off a touch it makes a big difference with my 1.8xx mv/a output/off set.Lebowski said:Arlo1 said:Lebowski.
You mention possibly removing the current sensor calibration. What if you add a feature that at every time the controller is reset or started it keeps all stages off while it looks at the current sensor voltages and set those to newtral.? I say this because I find mine to need to be recalibrated often to keep it from starting with a tick tick and bouncing between drive 1 and 2.
As mentioned before I have my reservations now about the offset calibration, based on new insights...
During the offset calibration you can hear the motor makes a tone. What I do is during offset calibration it runs a tone through the motor, the purpose of which is to get rid of the magnetic hysteresis in the current sensors. The magnetic material in the sensors 'rememers' some magnetic field from the last time a current ran through it. You need to get rid of this if you want to know te real offset, so hence the tone.
Problem though (only know this recently), the tone combined with the motor inductance non-linearity makes for a DC current going through the motor and current sensors, making the offset measurement useless. This became especially clear to me when Izeman reported that one of his sensors apparently had a 200mV offset (even though the current sensor datasheet showed it should be less than 5 mV).
So you also need to have the power supply to the sensors very stable...Arlo1 said:The problem with most current sensors is they need a voltage applied to produce the 2.5v at neutral but the 2.5v can be off a bit depending on all the power supplies. I have a supply for 5v for the brain one for 10v for the sensors and then 2:1 divider resistors. And if any of those components are off a touch it makes a big difference with my 1.8xx mv/a output/off set.
Yes I use a 13.8v power supply for everything. Then from there the 5v and the 10v isolated supplies on the brain have their own liner regulators. And the driver boards have their own separate isolated supplies for each high and low which comes from another liner regulator. I did it this way so I could adjust each section to the right voltage and I wanted to use isolated supplies everywhere and I wanted to make sure it was consistent.Njay said:So you also need to have the power supply to the sensors very stable...Arlo1 said:The problem with most current sensors is they need a voltage applied to produce the 2.5v at neutral but the 2.5v can be off a bit depending on all the power supplies. I have a supply for 5v for the brain one for 10v for the sensors and then 2:1 divider resistors. And if any of those components are off a touch it makes a big difference with my 1.8xx mv/a output/off set.
How about the grounds? If they move between the 5V and the 10V system you get a change in the sensor's output too.Arlo1 said:Yes I use a 13.8v power supply for everything. Then from there the 5v and the 10v isolated supplies on the brain have their own liner regulators.
Yes. But when things are at rest the ground is the ground unless something looses connection.Njay said:How about the grounds? If they move between the 5V and the 10V system you get a change in the sensor's output too.Arlo1 said:Yes I use a 13.8v power supply for everything. Then from there the 5v and the 10v isolated supplies on the brain have their own liner regulators.
Arlo1 said:Yes. But when things are at rest the ground is the ground unless something looses connection.Njay said:How about the grounds? If they move between the 5V and the 10V system you get a change in the sensor's output too.Arlo1 said:Yes I use a 13.8v power supply for everything. Then from there the 5v and the 10v isolated supplies on the brain have their own liner regulators.
Lebowski said:Stuff is never at rest in a controller. The chip by the way is not sensitive to the common offset in the current sensors, it only looks at the difference between the sensors. So in Arlo's case the 200mV has no effect, only the 10mV between the sensors. Groundbounce is also common and will have no effect.
This is one of the reasons for having 3 current sensors, common groundbounce and noise has no effect. I just cannot understand SEVCON etc etc all use only 2 current sensors,meaning it will be very sensitive to groundbounce and noise and no way to clean up the signals....