0
Offline
Newbie
Karma: 0
Posts: 22
Arduino rocks
|
 |
« on: January 29, 2011, 05:44:05 am » |
I had a sensor who needs Ac in order to work. What must I do in order to use AC with the arduino
thanks for your help
|
|
|
|
|
Logged
|
|
|
|
|
nr Bundaberg, Australia
Offline
Tesla Member
Karma: 71
Posts: 6815
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #1 on: January 29, 2011, 05:46:12 am » |
James
a) Don't double (or even triple) post. b) We need more info on the sensor, do you have a link to a spec sheet.
______ Rob
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 22
Arduino rocks
|
 |
« Reply #2 on: January 29, 2011, 07:01:44 am » |
The sensor is home-made. My question is how to use AC in the arduino. The sensor is a conductivity sensor and i need AC in order that it works
thank you
|
|
|
|
|
Logged
|
|
|
|
|
nr Bundaberg, Australia
Offline
Tesla Member
Karma: 71
Posts: 6815
Scattered showers my arse -- Noah, 2348BC.
|
 |
« Reply #3 on: January 29, 2011, 07:52:17 am » |
My question is how to use AC in the arduino.
Sorry mate but this doesn't make much sense. If you want to switch AC under Arduino control you can do that with a triac or a relay. ______ Rob
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 22
Arduino rocks
|
 |
« Reply #4 on: January 29, 2011, 12:20:44 pm » |
it is a home made sensor to calculate the conductivity of water when you have a disolution of water and for example salt (NaCl), and you transmit to it DC, the water suffer a process called desionization, because of that i must use AC in order that water do not deionizat and with AC water can transmit electricity, that is what i need to make the sensor works. I think this is the best explanation i can tell you about this part of my proyect
thank you for your help
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Jr. Member
Karma: 4
Posts: 64
Arduino rocks
|
 |
« Reply #5 on: January 29, 2011, 01:59:08 pm » |
james95, you really have not provided enough information... but I'll try to help by guessing what you want.
an example of an AC signal is sound, so you could try searching for anything related to getting a microphone signal into Arduino. You could also search for single-ended opamp designs. The principal is to put the average of your AC signal at 2.5V and this would typically be done with an opamp circuit.
I think study along those lines will lead in the right direction.. unless I misunderstand what you are trying to do. I assume you wish to read an analog signal and that the signal is an AC one.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 273
Posts: 25474
Solder is electric glue
|
 |
« Reply #7 on: May 30, 2011, 03:27:56 am » |
To make AC in this way use a H bridge circuit like you have for a motor. Then feed the direction control input with a signal that is at the frequency you want the AC.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 22
My favorite programming language is a soldering iron.
|
 |
« Reply #8 on: May 30, 2011, 04:40:21 am » |
Obviously the Arduino will not work with an AC voltage. It requires 7 - 12 Volts DC. It sounds like your sensor is using low voltage AC to detect the water conductivity. I hope that you are using a fully decpup0led transformer for this as AC mains (240V) + water + human can be fatal. The Arduino analog inputs need a variable voltage beween 0 and 20V DC. See here http://arduino.cc/en/Main/ArduinoBoardUno. Can you please post a schematic of your AC based water sensor. I'd like to see what sort of an output it presents to the outside world.
|
|
|
|
|
Logged
|
|
|
|
|
SG
Offline
Sr. Member
Karma: 3
Posts: 266
Arduino rocks
|
 |
« Reply #9 on: May 30, 2011, 07:29:28 am » |
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 22
My favorite programming language is a soldering iron.
|
 |
« Reply #10 on: May 30, 2011, 01:07:16 pm » |
@BillHo, If I were doing this project I would use the Wheatstone Bridge approach for the sensor/measurement device as defined in the pdf in the first result in your Google search. This would provide a continuous and variable AC output which could be rectified and conditioned to provide the optimum voltage for the Arduino. It couled even be opto-coupled to make absolutely sure that no mains voltavge could leak into the Arduino.
I actually used this method back ing the 1980s (no microcontroller, for a solar powered swimming pool heating system and it worked very well indeed.
The Arduino now has to sample and display the result. You could use any ofthe oputputs to provide alarms and threshholds.
@james95, I'd still like to see the circuit that you are is using though.
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 273
Posts: 25474
Solder is electric glue
|
 |
« Reply #11 on: May 30, 2011, 04:54:25 pm » |
@rederikus The Arduino analog inputs need a variable voltage beween 0 and 20V DC. This is total and utter rubbish and is not supported by that link. Anything over and above the supply voltage to the chip on the analogue input will blow them up. So that is anything outside 0 to +5V.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Jr. Member
Karma: 0
Posts: 89
|
 |
« Reply #12 on: May 30, 2011, 05:13:06 pm » |
I dont know if i got you you have a home made sensor , you use AC to "power the sensor" and then read the output ,i suppose that the output is AC with same frequency ,ok tell us AC value,i think is easy solution for low AC voltage
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 22
My favorite programming language is a soldering iron.
|
 |
« Reply #13 on: May 31, 2011, 03:42:02 am » |
I dont know if i got you you have a home made sensor , you use AC to "power the sensor" and then read the output ,i suppose that the output is AC with same frequency ,ok tell us AC value,i think is easy solution for low AC voltage
Mike, I ws amazed to see the quoted voltage inputs. Imo this should be 5 volts max. I was going to write just that when I thought that I had better check the manufacturers specs - as ya do. I then just quoted what they said. I am sorry to have given wrong information but after a lifetime in the electronics industy and a BSc to boot, I was very reluctant to misquote the manufacturer even though their numbers jibed with my own experience. 5 volts it is then 
|
|
|
|
|
Logged
|
|
|
|
|
Manchester (England England)
Offline
Brattain Member
Karma: 273
Posts: 25474
Solder is electric glue
|
 |
« Reply #14 on: May 31, 2011, 02:05:56 pm » |
Yes but where on that page does it sy that. You are not mixing up what it says about input voltage, that reffers to the power input at the DC jack.
|
|
|
|
|
Logged
|
|
|
|
|
|