Pages: [1]   Go Down
Author Topic: Looking for an IC... Does it exist?  (Read 413 times)
0 Members and 1 Guest are viewing this topic.
The Netherlands
Offline Offline
Newbie
*
Karma: 0
Posts: 18
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi!

I'm looking for an IC that converts an analog voltage signal to a signal that is either high (5 Volts) or low (0 Volts). I was thinking about using a Schmitt trigger but I would like to be able to adjust the voltage level of the "switchpoint" between high and low, for example by using a potentiometer. Does an IC like this exist? Could you please post the name of the IC or the datasheet? And if it doesn't exist, how can I build a circuit like this myself? Please let me know.

Thanks!
Logged

Grand Blanc, MI, USA
Online Online
Faraday Member
**
Karma: 71
Posts: 3538
CODE is a mass noun and should not be used in the plural or with an indefinite article.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Sounds like that could be a voltage comparator. I believe many AVRs include analog comparators, so if an MCU is part of the design, a separate comparator may not be needed. From the ATmega328 datasheet:
Quote
22.1 Overview
The Analog Comparator compares the input values on the positive pin AIN0 and negative pin
AIN1. When the voltage on the positive pin AIN0 is higher than the voltage on the negative pin
AIN1, the Analog Comparator output, ACO, is set. The comparator’s output can be set to trigger
the Timer/Counter1 Input Capture function. In addition, the comparator can trigger a separate
interrupt, exclusive to the Analog Comparator. The user can select Interrupt triggering on comparator
output rise, fall or toggle.
Logged

MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

'round the world...
Offline Offline
Faraday Member
**
Karma: 41
Posts: 3115
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Analog Comparator, or a cheap operational amplifier (without feedback loop) will do that.

It might be worth to have a read on the ATmega328 manual. There is an analog comparator onboard the Arduino chip.
Logged

Eu não sou o teu criado. Se respondo no fórum é para ajudar todos mediante a minha disponibilidade e disposição. Responder por mensagem pessoal iria contra o propósito do fórum e por isso evito-o.
Se realmente pretendes que eu te ajude por mensagem pessoal, então podemos chegar a um acordo e contrato onde me pagas pela ajuda que eu fornecer e poderás então definir os termos de confidencialidade do meu serviço. De forma contrária toda e qualquer ajuda que eu der tem de ser visível a todos os participantes do fórum (será boa ideia, veres o significado da palavra fórum).
Nota também que eu não me responsabilizo por parvoíces escritas neste espaço pelo que se vais seguir algo dito por mim, entende que o farás por tua conta e risco.

Dito isto, mensagens pessoais só se forem pessoais, ou seja, se já interagimos de alguma forma no passado ou se me pretendes convidar para uma churrascada com cerveja (paga por ti, obviamente).

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 443
Posts: 23854
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You could use an op amp or comparator suchs as the LM358 that the arduino's use for power switching comparison.
Your signal goes into the + pin, the -pin gets connected to a trim pot that you set to the swithover voltage;
If the + pin has lower voltage than the - pin, the output is low, and if higher the output is high.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Pages: [1]   Go Up
Jump to: