Show Posts
Pages: 1 ... 3 4 [5] 6 7 ... 11
61  Using Arduino / Project Guidance / Re: CASIO calculator and Arduino; joining circuits of different Voltage on: April 23, 2013, 01:18:43 pm
it means you can use this chip to have 2 different components that use different voltage talk to eachother, ie 3.3v to 5v. its a buffer between the 2.
62  Using Arduino / Project Guidance / Re: CASIO calculator and Arduino; joining circuits of different Voltage on: April 22, 2013, 11:54:43 am
http://www.nxp.com/documents/data_sheet/74HC_HCT125.pdf

not sure if this helps
63  Using Arduino / Project Guidance / Re: Attiny85 and 24lc256 on i2c taking temperature. how to read it? on: April 22, 2013, 11:09:16 am
wait i see, i forgot tinywire.begin, let me revise and retry.

SUCCESS!

thank you C.B.
i just got to put it all together now. revised read/reset/send sketch that works. i use putty, can save it to putty log and import to excel, as long as i know when readings started, i can add the times to excel afterwards, eliminating an rtc for this project. (which i may add anyway later on) thanks again.

Code:
#include <TinyWireM.h>
#define IO_ADDR 0x50
byte data;
unsigned int pointer=0;

void setup(){
  TinyWireM.begin();
  Serial.begin(9600);
  Serial.println("test");
 
  
  for (int i=0;i<20;i++){

    TinyWireM.beginTransmission(IO_ADDR);
    TinyWireM.send(pointer>>8);
    TinyWireM.send(pointer & 0xFF);
    TinyWireM.endTransmission();
    TinyWireM.requestFrom(IO_ADDR,1);
    data=TinyWireM.receive();
    pointer++;
    Serial.println(data,DEC);
    
  }
}

void loop(){
  
}
64  Using Arduino / Project Guidance / Re: Attiny85 and 24lc256 on i2c taking temperature. how to read it? on: April 22, 2013, 10:27:30 am
here is the code, the "test" comes through fine, everything else just blank lines. am i reading the 24lc256 correctly with tinywirem? core is attiny85 @8 internal, bod disabled.

Code:
#include <TinyWireM.h>
#define IO_ADDR 0x50
byte data;
unsigned int pointer=0;

void setup(){
  Serial.begin(9600);
  Serial.println("test");
 
 
//  for (int i=0;i<20;i++){

    TinyWireM.beginTransmission(IO_ADDR);
    TinyWireM.send(pointer>>8);
    TinyWireM.send(pointer & 0xFF);
    TinyWireM.endTransmission();
    TinyWireM.requestFrom(IO_ADDR,1);
    data=TinyWireM.receive();
//    pointer++;
    Serial.println(data);
   
//  }
}

void loop(){
 
}
65  Using Arduino / Project Guidance / Re: Mister pumps on: April 21, 2013, 05:44:10 pm
i dont think house pressure goes that high, but just to run misters? sounds off, i used to build boiler rooms and we had to figure out pump sizes for industrial uses where water would travel 100's of feet, but i havent done the math in years. i think house pressure is 30-36psi, but google i could be wrong. but i wouldnt think you would need much more than that for misters. go to the supermarket and ask to see their setup, im sure they will show you, so what pressure their pushing.
66  Using Arduino / Project Guidance / Re: Attiny85 and 24lc256 on i2c taking temperature. how to read it? on: April 21, 2013, 05:41:41 pm
i am going to give that a go, sounds good. thank you C.B. right now watching battlestar galactica when zarek and gaeta try to take over the galactica, i think blood on your hands episode. as soon as done im gonna get to work on this.
67  Using Arduino / Project Guidance / Re: Mister pumps on: April 21, 2013, 04:41:40 pm
if you have access to water, ie copper, you could install a solenoid valvle. would maintain pressure, about 30psi i think most households.
http://www.adafruit.com/products/996

if you go with brass you may need a dielectric union between it and copper, im not sure been years since i did stuff like this.

or even better, pvc http://www.adafruit.com/products/997

but a small pump should be fine for what your talking about, if your pumping from a bucket or something like that? you should have a fill valve also.
68  Using Arduino / Project Guidance / Re: Attiny85 and 24lc256 on i2c taking temperature. how to read it? on: April 21, 2013, 04:38:22 pm
not important at this point at all, just learning stages still.
69  Using Arduino / Project Guidance / Re: Attiny85 and 24lc256 on i2c taking temperature. how to read it? on: April 21, 2013, 04:15:31 pm
if i dump the tone(), gives me one pin. i could dump the led too, gives me 2 pins then.
70  Using Arduino / Project Guidance / [Solved] Attiny85 and 24lc256 on i2c taking temperature. how to read it? on: April 21, 2013, 03:56:17 pm
Hello all,
in experimenting, ive got an attiny85, 24lc256, lm34 and max1555 with a 110mah lipo taking temperature every minute for about 20 minutes. this experiment is all part of my learning, my question is, where do i go from here? specifically, instead of me pulling my eeprom every time i want to read it, whats a solid way to read the eeprom in place after my sampling is done. the sketch isnt 100% meaning its just in testing phase to get me 20 samples, and alert me when done. id like to be able to plug it up to usb and retrieve the data somehow. im not opposed to purchasing breakout boards, but would like to build it myself. thanks for the input. please feel free to streamline the sketch or advise if anything is being done wrong, or a better way to do it. thanks again.  smiley-grin  edit** and charge pump (max619) 50ma model.

Code:
#include <TinyWireM.h>
#define IO_ADDR 0x50
#define ledpin 1
float tempF;
float a;
byte x; //for testing
unsigned int pointer=0;//x5a2;
void setup() {
  pinMode(ledpin,OUTPUT);
  pinMode(3,INPUT);
  //  for (int i=0;i<20;i++){   for testing
  TinyWireM.begin();        // initialize the I2C interface
  beginsequence();
  //  }
}
void loop() {
  if (pointer==0x13){   //e2 addr 20. bust out of loop when 20 samples done.
    endrun();
  }
  a=analogRead(3);
  tempF=(5.0*a*100.0)/1023.0;
  byte c=tempF+0.5;
  TinyWireM.beginTransmission(IO_ADDR);
  TinyWireM.send(pointer>>8);
  TinyWireM.send(pointer & 0xFF);
  TinyWireM.send(c);
  TinyWireM.endTransmission();

  pointer=pointer+1;
  
  
delay(60000);
}

void endrun(){
  tone(4, 2000, 80);
  digitalWrite(ledpin,HIGH);
  while (1){       //just hang here with led on till i get up of lazy butt to retrieve. basically crash sketch here, best way for this?
  }
}

void beginsequence(){    //some kind of visual indicator that its gonna start, battery not dead
  tone(4, 2000, 80);
  digitalWrite(ledpin,HIGH);
  delay(500);
  digitalWrite(ledpin,LOW);
  delay(200);
  tone(4, 2000, 80);
  digitalWrite(ledpin,HIGH);
  delay(200);
  digitalWrite(ledpin,LOW);
delay(200);
}


71  Community / Website and Forum / Re: Proposed "sticky" : How to use this forum on: April 08, 2013, 06:09:40 am
i must admit, i never read any of that stuff, which is why on my very first post on this forum i did all the wrong things, of which i will apologize for. i also made some jokes in one of the topics someone started about people demanding to be shown how to make an led blink, lol. someone pm'ed to see if i was kidding, i assure you, i was. again, apologies for that. morale of reply? new guys, follow the tips and rules here, noone has to help you, they do on their own free time.
72  Community / Website and Forum / Re: Playground down on: April 08, 2013, 05:55:23 am
its been down for me for the last few days.

to be specific, heres the error.

Code:
Error 101 (net::ERR_CONNECTION_RESET): The connection was reset.
73  Using Arduino / General Electronics / Re: multi chip led series resistor math help on: March 31, 2013, 05:33:01 pm
ok thx James  smiley

good info
74  Using Arduino / General Electronics / Re: multi chip led series resistor math help on: March 31, 2013, 03:14:56 pm
ya 9 volt supply i meant purely for convenience. should be an interesting project, im still in the 'messing around with what works good phase'. i appreciate your advice Jim thank you.
75  Using Arduino / Sensors / Re: Arduino uno Interfacing with IC problems on: March 31, 2013, 01:32:50 pm
is there a current running through the current sensors? just curious.
Pages: 1 ... 3 4 [5] 6 7 ... 11