Show Posts
Pages: 1 [2] 3 4 ... 8
16  Using Arduino / Programming Questions / Re: Simple Code on: March 29, 2014, 09:16:32 pm
Very cool thank you guys for the help.
17  Using Arduino / Programming Questions / Re: Simple Code on: March 29, 2014, 08:44:24 pm
Yeah I see it but I don't understand it. Sorry. I just needed to know how I would change the code. smiley-red
18  Using Arduino / Programming Questions / Simple Code on: March 29, 2014, 08:09:41 pm
Been experimenting with a resistor reader and have the following:
Code:
int analogPin = 0;
int raw = 0;
int Vin = 4.94;
float Vout = 0;
float R1 = 1010.86;
float R2 = 0;
float buffer = 0;

void setup()
{
  Serial.begin(9600);
 
}

void loop()
{
  raw = analogRead(analogPin);
  if(raw)
    {
        buffer = raw * Vin;
        Vout = buffer /1024.0;
        buffer = (Vin / Vout) - 1;
        R2 = R1 / buffer;
        Serial.print("Resistance Value: ");
        Serial.println(R2);
        delay(900);
       
    }
}
All is well but I would like it to say the word "Ohms" after the given reading on the same line. For example as it sits now it displays, "Resistance Vaule: 470.00" I would like to read, "Resistance Value: 470 Ohms." I have been trying different ways but no success. Any help much appreciated.
19  Using Arduino / Project Guidance / Re: Using Arduino Uno R3 to program Atmega328P on: March 23, 2014, 10:53:05 pm
I just plan on using the internal 8 MHz of the 328P. I don't see why I should have to burn a boot loader onto the chip if I am not going to be using inside the Arduino Uno. I just want to build a shield just like I did for my Attiny85 chips and then program the 328P chips with my desired sketches using the Arduino Uno as the ISP. I have a laptop with no serial port so there is no point in buying a $39 programmer when I can just use my Arduino. I literally have hundreds of these 328P chips and like I said would be nice to pop one into a DIP socket within a proto board and use the Arduino to program them. Then when my sketch is on the chip I can simply pop it out and use it in my circuits.
20  Using Arduino / Project Guidance / Re: Using Arduino Uno R3 to program Atmega328P on: March 23, 2014, 10:18:32 pm
Thanks for the responses. I still don't think anyone understands what I am trying to do here. smiley-sad-blue smiley-sad
21  Using Arduino / Project Guidance / Re: How to control a heating blanket and pump via arduino on: March 23, 2014, 10:12:49 pm
Well I have built a temperature controller using a 10k thermistor, three 10K resistors and a 16X2 LCD. In the diagram you would use Pin 13 as the signal for a relay. If you are controlling 120V device I would suggest an N channel MOSFET transistor with a protection diode across the relays coil. My code works so you can set the temperature with two small buttons and the actual temp and set temp display on the LCD.  When the temp reaches your set temp it will signal on Pin 13. Let me know if this is something that can help you and I will give you the code and make a diagram of how to wire the MOSFET to your relay to control your 120V device.
22  Using Arduino / Project Guidance / Re: Using Arduino Uno R3 to program Atmega328P on: March 23, 2014, 10:06:39 pm
Well I don't really want to plug a 328P chip into my Arduino and program it then remove it for a standalone project. I just wanted to use the Arduino Uno as the programmer for a standalone 328P chip. I have already done this for an Attiny85 chip. I made a shield for the Arduino as well. I simply plug the shield on top of the Arduino and put the Attiny85 into the socket. Then I load my sketch into Arduino IDE and upload it to the Attiny85 using the Arduino as the programmer. I am wanting to accomplish this same thing only using the 328P chip in place of the Attiny85. Does this make more sense?
23  Using Arduino / Project Guidance / Re: Would this pump be compatible with Arduino? on: March 23, 2014, 08:14:19 pm
Here is a schematic for controlling 120 Volts with arduino..... The JP2 side is your arduino.
24  Using Arduino / Project Guidance / Using Arduino Uno R3 to program Atmega328P on: March 23, 2014, 08:11:20 pm
Well I have successfully built a shield for programming my Attiny85 chips using my Arduino Uno as the ISP. My question and where I am confused is how would I upload sketches to a stand alone Atmega328P chip? I had a friend that recently closed an electronics shop that gave me a butt load of these Atmega328P-PU chips. Same chip in the Arduino Uno. I just want to be able to write my sketches in the Arduino IDE and then using the Arduino Uno to send the sketch to the standalone chip. That way I can use the Atmega328P chips in my standalone projects. Is this possible to do? Thanks.
25  Using Arduino / Project Guidance / Re: 3x3x3 cube on: September 02, 2013, 12:29:59 am
I figured it out it was a HIGH and LOW thing in the sketch. Thanks!
26  Using Arduino / Project Guidance / 3x3x3 cube on: September 01, 2013, 08:31:08 pm
I found this awesome site that allows you to create patterns for your 3x3x3 led cube. It is here: http://mezdata.de/avr/stocka-LEDCube-Pattern-Tool-40fdc8a/ I have it all wired as the code suggests and it works great. However I can't seem to light a single LED. Is this not possible? It seems that when I want to light a single LED that an LED underneath the one I want to light also lights up. What's going on? I am not using any NPN transistors. Is this why?
27  Using Arduino / Project Guidance / Re: Common anode RGB LED on: August 30, 2013, 05:17:29 pm
Yeah I think I will try a USB to Serial cable. Would this work??  http://www.amazon.com/CP2102-Module-Download-Serial-Converter/dp/B009T2ZR6W
28  Using Arduino / Project Guidance / Re: Common anode RGB LED on: August 30, 2013, 03:52:10 pm
Well When I connect the arduino to my phone it runs smooth with no lag. It's only when I run it on the Attiny84 chip. I am Still using the Arduino's RX and TX though as I do not have a Serial to USB cable. Could this be it? I wouldn't think so as I am only using the Arduino to essentially convert serial to USB.
29  Using Arduino / Project Guidance / Re: Common anode RGB LED on: August 29, 2013, 06:59:37 pm
Well it lags about 1/2 second delay from time I choose the color to the time I actually see the color.
30  Using Arduino / Project Guidance / Re: Common anode RGB LED on: August 29, 2013, 08:32:14 am
Okay I figured it out. I downloaded a different tiny core and I no longer get the error. I uploaded sketch to my attiny84 and since I dont have an FTDI serial to usb cable I am simply using the arduino for now just for TX and RX. Only thing is there is a huge lag using the attiny84. Anyone know max baud rate for the attiny84??
Pages: 1 [2] 3 4 ... 8