Date: 25/09/2014 01:33:21
From: wookiemeister
ID: 599621
Subject: morries arduino

http://electronics.stackexchange.com/questions/43498/how-can-i-use-a-12-v-input-on-a-digital-arduino-pin

A simple resistor divider will bring the 12 V down to the 5 V an Arduino can digest. The output voltage can be calculated as ………

Better Michael’s optocoupler is a good alternative, though a bit more expensive. You often will use an optocoupler to isolate input from output, but you can also use it to protect an input like you want here. ………….

for my money’s worth , if I don’t want any stuff ups in the future I would use the opto coupler every time – its guaranteed not to stuff the arduino because it is using the arduino’s own power source to power the input side

I would see if you can buy a dedicated opto coupler for the arduino

Reply Quote

Date: 25/09/2014 11:43:05
From: mollwollfumble
ID: 599804
Subject: re: morries arduino

wookiemeister said:


http://electronics.stackexchange.com/questions/43498/how-can-i-use-a-12-v-input-on-a-digital-arduino-pin

A simple resistor divider will bring the 12 V down to the 5 V an Arduino can digest. The output voltage can be calculated as ………

Don’t use 5V input to an Arduino unless you have a regulated power supply or can otherwise guarantee the voltage. Use the VIN input which happily accepts anything from 6V to 12V and does its own internal down-regulating.

Reply Quote

Date: 25/09/2014 11:45:55
From: wookiemeister
ID: 599807
Subject: re: morries arduino

mollwollfumble said:


wookiemeister said:

http://electronics.stackexchange.com/questions/43498/how-can-i-use-a-12-v-input-on-a-digital-arduino-pin

A simple resistor divider will bring the 12 V down to the 5 V an Arduino can digest. The output voltage can be calculated as ………

Don’t use 5V input to an Arduino unless you have a regulated power supply or can otherwise guarantee the voltage. Use the VIN input which happily accepts anything from 6V to 12V and does its own internal down-regulating.


adafruit seem to recommend always using a dedicated specialised power supply to feed the arduino regardless of the arduinos capabilites

Reply Quote

Date: 25/09/2014 12:01:10
From: transition
ID: 599817
Subject: re: morries arduino

>A simple resistor divider will bring the 12 V down to the 5 V an Arduino can digest

if the output from the device generating pulses had an open collector PNP and pulls up a simple divider will stop the signal from going all the way down to the off state in which case it may not reach some trigger or reset threshold reliably, however if it had an open collector NPN and pulls down it wouldn’t be an issue.

Reply Quote

Date: 25/09/2014 18:34:05
From: morrie
ID: 599932
Subject: re: morries arduino

mollwollfumble said:


wookiemeister said:

http://electronics.stackexchange.com/questions/43498/how-can-i-use-a-12-v-input-on-a-digital-arduino-pin

A simple resistor divider will bring the 12 V down to the 5 V an Arduino can digest. The output voltage can be calculated as ………

Don’t use 5V input to an Arduino unless you have a regulated power supply or can otherwise guarantee the voltage. Use the VIN input which happily accepts anything from 6V to 12V and does its own internal down-regulating.


It isn’t for the power supply. It is for a digital input.

Reply Quote

Date: 27/09/2014 00:04:42
From: morrie
ID: 600635
Subject: re: morries arduino

wookiemeister said:


morrie said:

transition said:

>stop it or you’ll go deaf

Morrie, suppose that neat little arduino chip you’re using has a schmitt trigger(or similar) you can adjust for tidying up and managing signals in.


You can do stuff like de-bouncing in the software. It is running at 16 MHz. There is a chapter in my guide book about that but I haven’t had cause to use it so far.

the last thing I read was they were using delay() to rid bounce

Reply Quote

Date: 27/09/2014 00:08:56
From: morrie
ID: 600636
Subject: re: morries arduino

morrie said:


wookiemeister said:

morrie said:

transition said:

>stop it or you’ll go deaf

Morrie, suppose that neat little arduino chip you’re using has a schmitt trigger(or similar) you can adjust for tidying up and managing signals in.


You can do stuff like de-bouncing in the software. It is running at 16 MHz. There is a chapter in my guide book about that but I haven’t had cause to use it so far.

the last thing I read was they were using delay() to rid bounce


Yes, but there is a library function that does it in a more sophisticated way.

Reply Quote

Date: 27/09/2014 00:08:58
From: wookiemeister
ID: 600637
Subject: re: morries arduino

if we are still talking your motor output signal

wouldn’t that be fairly clean – assuming its being done electronically?

Reply Quote

Date: 27/09/2014 00:09:47
From: wookiemeister
ID: 600638
Subject: re: morries arduino

morrie said:


morrie said:

wookiemeister said:

You can do stuff like de-bouncing in the software. It is running at 16 MHz. There is a chapter in my guide book about that but I haven’t had cause to use it so far.


the last thing I read was they were using delay() to rid bounce


Yes, but there is a library function that does it in a more sophisticated way.


most likely a time based function that compares one part of a wave to another

millis() might be involved

Reply Quote

Date: 27/09/2014 00:10:31
From: morrie
ID: 600639
Subject: re: morries arduino

wookiemeister said:


if we are still talking your motor output signal

wouldn’t that be fairly clean – assuming its being done electronically?


It is an encoder signal. I think it is relatively clean. The VFD accepts it without any problems. I haven’t put my Picoscope onto it.

Reply Quote

Date: 27/09/2014 00:10:44
From: wookiemeister
ID: 600640
Subject: re: morries arduino

it might say lets look at it over 50 millis()

whats going on with the wave , whats it really doing falling or rising?

Reply Quote

Date: 27/09/2014 00:11:43
From: wookiemeister
ID: 600641
Subject: re: morries arduino

morrie said:


wookiemeister said:

if we are still talking your motor output signal

wouldn’t that be fairly clean – assuming its being done electronically?


It is an encoder signal. I think it is relatively clean. The VFD accepts it without any problems. I haven’t put my Picoscope onto it.


ah that’s right – you want to tap in from the signal producer and the VFD its talking to (I think)

Reply Quote

Date: 27/09/2014 00:12:32
From: wookiemeister
ID: 600642
Subject: re: morries arduino

from what I remember VFDs are connected with cables that are shielded for noise

you don’t want noise triggering the motor

Reply Quote

Date: 27/09/2014 00:12:44
From: morrie
ID: 600643
Subject: re: morries arduino

wookiemeister said:


it might say lets look at it over 50 millis()

whats going on with the wave , whats it really doing falling or rising?


nfi. It is simply called as a function.

Reply Quote

Date: 27/09/2014 00:16:32
From: morrie
ID: 600644
Subject: re: morries arduino

wookiemeister said:


from what I remember VFDs are connected with cables that are shielded for noise

you don’t want noise triggering the motor


The VFD simply produces a 3 phase frequency controlled output from the 50Hz 240 volt supply. No data exchange involved. It is feed forward.
The encoder signal is from another device that is driven by the motor. It sends a set of step waves back to the VFD via shielded data lines. This makes the VFD feedback controlled instead of feed forward.

Reply Quote

Date: 27/09/2014 00:16:40
From: wookiemeister
ID: 600645
Subject: re: morries arduino

morrie said:


wookiemeister said:

it might say lets look at it over 50 millis()

whats going on with the wave , whats it really doing falling or rising?


nfi. It is simply called as a function.


http://arduino.cc/en/Tutorial/Debounce

Reply Quote

Date: 27/09/2014 00:19:39
From: wookiemeister
ID: 600646
Subject: re: morries arduino

morrie said:


wookiemeister said:

from what I remember VFDs are connected with cables that are shielded for noise

you don’t want noise triggering the motor


The VFD simply produces a 3 phase frequency controlled output from the 50Hz 240 volt supply. No data exchange involved. It is feed forward.
The encoder signal is from another device that is driven by the motor. It sends a set of step waves back to the VFD via shielded data lines. This makes the VFD feedback controlled instead of feed forward.


suppose a lot of them must work like that – makes sense to control the thing based on what its doing not purely what it thinks its telling the motor to do

Reply Quote

Date: 27/09/2014 00:22:46
From: morrie
ID: 600648
Subject: re: morries arduino

wookiemeister said:


morrie said:

wookiemeister said:

from what I remember VFDs are connected with cables that are shielded for noise

you don’t want noise triggering the motor


The VFD simply produces a 3 phase frequency controlled output from the 50Hz 240 volt supply. No data exchange involved. It is feed forward.
The encoder signal is from another device that is driven by the motor. It sends a set of step waves back to the VFD via shielded data lines. This makes the VFD feedback controlled instead of feed forward.


suppose a lot of them must work like that – makes sense to control the thing based on what its doing not purely what it thinks its telling the motor to do


I hadn’t realised that this was possible until I needed it and went looking. I had to buy a small plug in board for the VFD and then set all the parameters via a bitch of a 2 button system and instructions in English written by Koreans.

Reply Quote

Date: 27/09/2014 00:25:49
From: sibeen
ID: 600649
Subject: re: morries arduino

wookiemeister said:


morrie said:

wookiemeister said:

from what I remember VFDs are connected with cables that are shielded for noise

you don’t want noise triggering the motor


The VFD simply produces a 3 phase frequency controlled output from the 50Hz 240 volt supply. No data exchange involved. It is feed forward.
The encoder signal is from another device that is driven by the motor. It sends a set of step waves back to the VFD via shielded data lines. This makes the VFD feedback controlled instead of feed forward.


suppose a lot of them must work like that – makes sense to control the thing based on what its doing not purely what it thinks its telling the motor to do

The first is known as ‘sensorless drive’, and terms like ‘sensorless vector drive and such get bandied around. It works quite well when the motor parameters are known and can be inputed into the VFD and then even fine tuned by people who know the systems well. So works very well with large systems where the motors parameters are fairly well defined.

Saying all that, anything with some feedback normally works better :)

Reply Quote

Date: 27/09/2014 00:34:30
From: morrie
ID: 600651
Subject: re: morries arduino

sibeen said:


wookiemeister said:

morrie said:

The VFD simply produces a 3 phase frequency controlled output from the 50Hz 240 volt supply. No data exchange involved. It is feed forward.
The encoder signal is from another device that is driven by the motor. It sends a set of step waves back to the VFD via shielded data lines. This makes the VFD feedback controlled instead of feed forward.


suppose a lot of them must work like that – makes sense to control the thing based on what its doing not purely what it thinks its telling the motor to do

The first is known as ‘sensorless drive’, and terms like ‘sensorless vector drive and such get bandied around. It works quite well when the motor parameters are known and can be inputed into the VFD and then even fine tuned by people who know the systems well. So works very well with large systems where the motors parameters are fairly well defined.

Saying all that, anything with some feedback normally works better :)


Usually, we set the speeds up with a tachometer at the beginning of a test. In this case however, the loads were varying much more than usual and the speeds were varying with load so much that it was becoming a real issue. Even without tuning the control parameters, the feedback speed control works like a dream. The whole system response is quite changed. It winds slowly up to speed, maintains it beautifully and stops instantaneously now. Before, it was quick to reach speed and took some time to stop.

Reply Quote