Recent Posts

Pages: [1] 2 3 ... 10
This sounds like something a substitute teacher would do, knowing they will never have to face the wrath of the real professor.

Sensors / Small, endless potentiometer/r...
Last post by CP30 - Today at 10:56 pm
I'm looking for a potentiometer/rotary encoder that is/has:

  • Endless, meaning that it can be turned more than 360 degrees.
  • High resolution, in this case meaning that it should be able to control a parameter going from 0 to 127 in one complete rotation without any noticeable steps.
  • Small, in that it preferably should be about as big as a standard potentiometer.

(Basically, a standard potentiometer, going from 0 to 1023 would definitely satisfy all my demands above if if would be possible to turn it more than 360 degrees.)

Any ideas where I can find such a device?
Where in the code do you save it after you read it from the keypad ?

These 2 lines are in setup()
Code: [Select]
  EEPROM.put(eeAddress, myvar); //put the value of myvar (currently zero) in address zero
  EEPROM.get( eeAddress, myvar ); //reload myvar from EEPROM address zero

Many thanks Sir , I got it. now it is working perfectly.

 Should I use EEPROM.update to save memory life time?
Hardware / Re: Cargar bateria y desconect...
Last post by surbyte - Today at 10:53 pm
Para desconectar la carga tienes que usar un MOSFET Canal P, pero eso implica tener un dispositivo de un elemento de control. Con que vas a controlar la situación?

El RED LED /CHARGE (negado o sea LOW) indicador te serviría. En modo CHARGING se activa y luego se apaga en todo momento.
El pin es Open Drain de modo que esta pensado para pasar a nivel bajo y que ingrese corriente. Tendrias varias opciones pero podrias poner un opto y cuando la situación de carga este presente el led se activará y tendras conducción en el fototransitor y entonces podrias activar/desactivar un MOSFET que desactive tu consumo.
Deutsch / Re: Arduino Uno mit LM35 und R...
Last post by HotSystems - Today at 10:52 pm
Also die if-Abfragen funktionieren prinzipiell schon
zum Beispiel:
Code: [Select]
if ((celius < 26) && (celius >= 23.2))
ist true wenn celius zwischen 23.2 und 26 liegt
Ja, du hast Recht....mein Blick war irritiert, da ich üblicherweise immer mit dem kleineren Wert beginne.

Der tatsächliche Fehler liegt am fehlenden

Code: [Select]
value = analogRead(TEMPSIGNALPIN);

in der Loop.
Displays / Re: LCD I2C problem printing t...
Last post by ArduinoBeginner01 - Today at 10:52 pm
So like I said before, you should re-solder pins 9 and 10 of the PCF8574 chip.
Did what you said and now it works! Thank you very much!

Need some help with a project using a stepper motor 28byj-48 ( 5 VDC ),  uln2003 controller and a potentiometer.
I only need to control the stepper motor using a potentiometer ( in this case 10Kohm), turning the knob the motor starts, stop turning the knob, the stepper stops, reverse the knob the stepper also reverse, but the stepper only vibrates. All connections ok. Potentiometer connected to A0. Already check the analog values of the potentiometer, using the serial monitor, and it's ok.
There are something wrong in the code, for sure. Can someone give me a hand, please??
Sorry my english!!!

Code: [Select]

#include <Stepper.h>

#define STEPS 64

Stepper stepper(STEPS, 8, 9, 10, 11);

int previous = 0;

void setup()

void loop()
  int val = map(analogRead(0), 0, 1023, 64 , 0);
  stepper.step(val - previous);
  previous = val;

Sensors / Re: Epson "USB" WiFi module
Last post by Zapro - Today at 10:51 pm
It should be fairly clear what the pinout is.

One pin is connected to the ground plane and shielding can. This is GND.
One track is a bit fatter than the last two ones and probably goes to a capacitor - this is positive 3.3 or 5V (Some internal USB-devices run on 3.3V, not 5V, just be aware of this.

Last two pins are USB data. Connect them up to a cable, plug in and see if your operating system detects the device. If you get "unknown device", swap the data pins. The voltage level on the data pins are identical, so you cannot damage anything by connecting these incorrectly.

// Per.
Deutsch / Re: Random-Zahlen vergleichen?
Last post by dony - Today at 10:51 pm
...Tasters wie Dony...
Bitte kein falsches Lob! ;)
Das war der Lösungsvorschlag von agmue. Ich hab nur eine Zeile Code gemacht.

Und jetzt bekommst Du noch eine: ;)
Code: [Select]
Der wird wohl frei sein! Wenn er es nicht ist, verwende einen freien AnalogIn Pin.

Einen leeren Analog Pin gibt Dir einen Wert von ca. 200-450. Der Unterschied zu millis().... kannst Du dir sicher Denken, deshalb bin ich für die millis() Lösung. Da Du einen Start Button hast eignet sich das auch perfekt!

Ich dachte Pin 0 wäre halt die 0 also einer der beiden Pins für die serielle Schnittstelle.
Nein, nicht bei analogRead().

Programming Questions / Re: More automotive stuff
Last post by PGTMR2 - Today at 10:51 pm
The button is going to be 5v to pin 2 with a 10k ohm resistor to ground in there, like I saw in someone's tutorial for something else!?! Not sure what I need more for it to read the button on pin 2.
Pages: [1] 2 3 ... 10