Recent Posts

Pages: [1] 2 3 ... 10
1
Programming Questions / Re: Problem with slideswitch
Last post by Covedrim - Today at 01:34 am
It finally worked! I connected the arduino to the center pin, with GND on one side and the 5V on the other and now it works like a charm! Thanks everyone for your replies!
2
Hi,

what was the solution to your problem?
I'm facing the same problem:
In continous mode, using the Adafruit library, the Arduino freezes and i cannot seem to get a value.
Just commenting out the delay in the getLastConversionResults() Method does not solve the problem for me. Any hints?

Thanks!
3
An Arduino input has many megOhms of resistance to ground hence there is no path to ground for the LED current. 
4
Sensors / Re: ADC reading occasional non...
Last post by Sunkmail - Today at 01:26 am
Appreciate the suggestions, however, they don't really address the issue of sporadic non-zero readings with the input tied low.

   - Update ... I tried shorting the A0 pin to ground and it is still giving the sporadic readings.




Using the 1.1V Ref would require the signal to be no more than the reference, correct?

I'd like to try to keep the resolution up higher, at least 100mV ... it'd be about 400 mV/Div. with a 1.1V reference, if my (in the head) math is right.


As already stated, the board is a Pro-Mini.


The 'sensors' in this case are literally voltages of a battery.
5
Editor / Re: Arduino Web Editor Down
Last post by ballscrewbob - Today at 01:26 am
Working here 7.30 EST
6
Français / Re: envoyer données lues d'un ...
Last post by didiersee - Today at 01:23 am
Bizarre pourquoi time est-il accepté avec arduino nano? Le code fonctionne sur arduino nano tel quel. Je ne comprends pas.
7
General Electronics / Re: iso mosfet
Last post by Wawa - Today at 01:22 am
Hard to find through-hole mosfets for 3.3volt logic, but any logic level fet would work with that low current.
There is no real benefit to use a mosfet for a 12volt/0.8A lightbulb.
I would just use a TIP120 with 1k base resistor.
Datasheet tells me that you only 'loose' ~0.6volt at that current.
Downside is that the TIP120 could get a bit warm.
Leo..
8
Sensors / Re: trouble with acs712 (measu...
Last post by lupamundur - Today at 01:21 am
There are many reasons why you shouldn't use a 5volt ACS712 with a 3.3volt processor.
One of them is that the STM32 might not like the possible >=4.5volt output of the sensor.
Another one is that you loose ratiometric behaviour. Zero current drift, gain drift, etc.
i see.. so basically it was because difference ratio from 5V collected data and 3.3V processed data. am i right?

A clip-on current sensor with 1volt AC output (ebay), with e few extra parts (two resistors + cap), might be a better (and safer) solution for a 3.3volt MCU.
Leo..
actually i have ordered ta12-100 (see attachment) with board and resistor attached, basically it was same like your recommend and already have 800 Ohm on the output. here is the specification from seller:
Code: [Select]
The Electricity sensor module is a member of Crowtail. It is based on the TA12-200 current transformer which can transform the large AC into small amplitude. You can use it to test large alternating current up to 5A.

Features
Crowtail compatible interface
Display Type: FSTN/Positive/Transflective/6:00 Visual Angle
Maximum 5A input
High accuracy
Small size

Specifications
Ratio: 2000: 1
Input Current: 0-5A
Output Current: 0-2.5mA
Sampling resistor: 800
Sampling voltage: 2V
Non-linearity: 0.2%
Phase Shift: 5 '

combining with arduino uno, it will also do the trick wouldn't it?
9
Project Guidance / Re: 6 Servo Project
Last post by RCRACER24 - Today at 01:21 am
Thanks for the help.  Im kind of a bad guesser when doing something i have never done before, so thats why some of this is way off.  I will look through everything, make the changes and see what error codes remain, and update this if there is something else i cant figure out.
10
Software / Re: Problemas de SRAM en Ardui...
Last post by Danikaz21 - Today at 01:20 am
Saludos surbyte, erro mio no subir codigo, a continuación lo muestro:

Code: [Select]

#include <SD.h>
#include <OLED_I2C.h>

#define S0 3
#define S1 4
#define S2 6
#define S3 7
#define sensorOut 5

extern uint8_t SmallFont[];
extern uint8_t MediumNumbers[];
const int inputPin = 2;
int value = 0;
int fR = 0;
int frequencyG = 0;
int frequencyB = 0;
int i=0;
int sumaR = 0;
int sumaG = 0;
int sumaB = 0;
int prR=0;
int prG=0;
int prB=0;
OLED myOLED(SDA, SCL, 8);
File archivo;
void setup() {
  myOLED.begin();
  pinMode(S0, OUTPUT);
  pinMode(S1, OUTPUT);
  pinMode(S2, OUTPUT);
  pinMode(S3, OUTPUT);
  pinMode(sensorOut, INPUT);
  pinMode(inputPin, INPUT);
 
  // Setting frequency-scaling to 20%
  digitalWrite(S0,HIGH);
  digitalWrite(S1,LOW);

 
  Serial.begin(9600);
    Serial.print(F("Configurando SD ..."));
  if (!SD.begin(10)) {
    Serial.println(F("No se pudo configurar correctamente"));
    return;
}
Serial.println(F("Configuración exitosa"));
}

void loop() {
  value = digitalRead(inputPin);
  if (value == HIGH) {
          myOLED.setFont(SmallFont);
          myOLED.print("Universidad El Bosque", CENTER, 0);
        Serial.println(F("Guardando en SD: "));
      for(i=0;i<10;i++){
    archivo = SD.open("datos.txt", FILE_WRITE);
    if(archivo){
  digitalWrite(S2,LOW);
  digitalWrite(S3,LOW);
  fR = pulseIn(sensorOut, LOW);
  sumaR = sumaR+fR;
  archivo.print("R= ");
  archivo.print(fR);
  archivo.print("  ");
  delay(500);
  digitalWrite(S2,HIGH);
  digitalWrite(S3,HIGH);
  frequencyG = pulseIn(sensorOut, LOW);
  sumaG=sumaG+frequencyG;
  archivo.print("G= ");
  archivo.print(fR);
  archivo.print("  ");
  delay(500);
  digitalWrite(S2,LOW);
  digitalWrite(S3,HIGH);
  frequencyB = pulseIn(sensorOut, LOW);
  sumaB=sumaB+frequencyB;
  archivo.print("B= ");
  archivo.print(frequencyB);
  archivo.println("  ");
  delay(500);
 
  prR = sumaR/10;
  prG= sumaG/10;
  prB= sumaB/10;
     
  Serial.print(F("R= "));
  Serial.print(fR);
  Serial.print(F("  "));
  Serial.print(F("G= "));
  Serial.print(frequencyG);
  Serial.print(F("  "));
  Serial.print(F("B= "));
  Serial.print(frequencyB);
  Serial.println(F("  "));
  delay(500);

  archivo.print("RT= ");
  archivo.print(prR);
  archivo.print(" ");
  archivo.print("RG= ");
  archivo.print(prG);
  archivo.print(" ");
  archivo.print("RB= ");
  archivo.print(prB);
  archivo.println(" ");

  archivo.close();
      }
    }
  Serial.print(F("R= "));
  Serial.print(prR);
  Serial.println(F("  "));
  Serial.print(F("G= "));
  Serial.print(prG);
  Serial.println(F("  "));
  Serial.print(F("B= "));
  Serial.print(prB);
  Serial.println(F("  "));

  myOLED.setFont(SmallFont);
  myOLED.print("pH: ", 40, 30);
  myOLED.setFont(MediumNumbers);
  myOLED.printNumI(prR, 60, 20);
  myOLED.setFont(SmallFont);
  myOLED.print("Estado: ", 30, 45);
  myOLED.setFont(MediumNumbers);
  myOLED.printNumI(prG, 70, 40);
  delay(1000);
  myOLED.update();
  myOLED.clrScr();
      }
  }
Pages: [1] 2 3 ... 10