Show Posts
Pages: [1] 2 3 ... 16
1  Development / Other Hardware Development / Re: Arduino buck converter shield 2.0 on: June 30, 2014, 03:13:24 pm
Hey I recently became very interested in buck converters and am having trouble finding easy to understand resources on how to design them. I don't mean to hijack your post but do you know of any good resources/tutorials? Could you maybe provide a schematic of your design?
2  Using Arduino / Sensors / Re: Arduino IR remote keyboard, need some help! on: February 03, 2012, 01:02:11 am
I fixed it! Your code was using NEC, I just switched to SONY and it worked!
3  Using Arduino / Sensors / Re: Arduino IR remote keyboard, need some help! on: February 03, 2012, 12:47:10 am
hey sirbow2 , I used your code and instead of your values for your remote I put in mine. Then I changed the if statements at the end to the corresponding numbers of the button such as 1 or 2 just as a test to see if it can distinguish which button im pressing. But no luck. It keeps saying FWD no matter which button I press. It looks like it just stays at 0 the whole time. Do you know how to fix this? Here's the code, I only used 3 buttons:

Code:
#include <IRremote.h>
long int Buttons[3] = {
  1153,  //0Play  //
  3201,  //1Repeat
  986012, };  //48BTNHOLD

//-----Robot Stuff-------------------------------------------------//
int LmtrSpd=0;
int RmtrSpd=0;
#define LServoMtrPin 2
#define RServoMtrPin 3
#include <Servo.h>
Servo LServoMtr;
Servo RServoMtr;
//----------------------------------------------------------------//

//-----IR-Stuff---------------------------------------------------//

int RECV_PIN = 11;
IRrecv irrecv(RECV_PIN);
decode_results results;
int BtnPressed = 0;
//----------------------------------------------------------------//
int Ttime = 0;
int Ftime = 0;
void setup()
{
  Serial.begin(9600);
  LServoMtr.attach(LServoMtrPin);
  LServoMtr.write(90);
  RServoMtr.attach(RServoMtrPin);
  RServoMtr.write(90);

  irrecv.enableIRIn(); // Start the receiver
}

void dump(decode_results *results)
{
  if (results->decode_type == NEC)
  {
    unsigned long store = (results->value);
    //Serial.println(store);
    for(int x=0; x<49; ++x)
    {
      if(store == Buttons[x])
      {
        BtnPressed = x;
        // Serial.println(x);
      }
    }
  }
}

void loop()
{
  Ttime = millis();
  if (irrecv.decode(&results))
  {
    dump(&results);
    if(BtnPressed == 0) //Fwd
    {
      Serial.println("FWD");
      LmtrSpd=180;
      RmtrSpd=0;
    }
    if(BtnPressed == 1) //Fwd Right
    {
      Serial.println("FWD+RIGHT");
      LmtrSpd=180;
      RmtrSpd=23;
    }
    if(BtnPressed == 2) //Fwd left
    {
      Serial.println("FWD+LEFT");
      LmtrSpd=113;
      RmtrSpd=0;
    }
    else if(BtnPressed == 3) //Back
    {
      Serial.println("BACK");
      LmtrSpd=0;
      RmtrSpd=180;
    }



    LServoMtr.write(LmtrSpd);
    RServoMtr.write(RmtrSpd);

    irrecv.resume(); // Receive the next value
  }
  int Ftime = millis();
  delay(25-(Ftime-Ttime));
}
4  Using Arduino / Sensors / Re: Arduino IR remote keyboard, need some help! on: January 30, 2012, 11:29:24 pm
yes... that is what I have already found out myself. I need help on getting the value because all I see are 0's so far. I also don't know how to assign a specific key to a tone.
5  Using Arduino / Sensors / Re: Arduino IR remote keyboard, need some help! on: January 30, 2012, 09:11:53 pm
I'm using the simple IRRecvdemo example code with the LED added in. THe problem is that the IR codes that I'm getting in the serial monitor only show up as a 0.

Code:
/*
 * IRremote: IRrecvDemo - demonstrates receiving IR codes with IRrecv
 * An IR detector/demodulator must be connected to the input RECV_PIN.
 * Version 0.1 July, 2009
 * Copyright 2009 Ken Shirriff
 * http://arcfn.com
 */

#include <IRremote.h>

int RECV_PIN = 11;
int light = 13;

IRrecv irrecv(RECV_PIN);

decode_results results;

void setup()

{
  Serial.begin(9600);

  irrecv.enableIRIn(); // Start the receiver
  pinMode(light, OUTPUT);
}

void loop() {
  if (irrecv.decode(&results)) {
    Serial.println(results.value, HEX);
    digitalWrite(light, HIGH);
    delay(100);
    digitalWrite(light, LOW);

    irrecv.resume(); // Receive the next value
  }
}
6  Using Arduino / Sensors / Arduino IR remote keyboard, need some help! on: January 29, 2012, 10:59:18 pm
Hey guys,

I have a remote for my TV that I can get my arduino to detect with an IR sensor and that's going great, I got a light to turn on whenever I press a button. But now I want to expand on that and connect a speaker to the arduino and assign different buttons on the remote to different tones to make a keyboard. How would I code in that this IR signal goes with this tone and so on?
7  Using Arduino / Interfacing w/ Software on the Computer / Re: On/OFF web interface need help! on: January 28, 2012, 08:02:53 pm
okay I got it to work but it is extremely slow to respond. Only about 2-3 minutes after I clock on or off does processing recognize the change. Anyone know a solution?
8  Using Arduino / Interfacing w/ Software on the Computer / Re: On/OFF web interface need help! on: January 28, 2012, 04:45:22 pm
it happens to you because of that thing in the 2nd paragraph but not for me cause I made the program myself. or idk
9  Using Arduino / Interfacing w/ Software on the Computer / Re: On/OFF web interface need help! on: January 28, 2012, 03:38:41 pm
i don't think so. Because I copy and pasted the script over so it won't have any data of where it is from. and I'm not getting any error messages or null
10  Using Arduino / Interfacing w/ Software on the Computer / Re: On/OFF web interface need help! on: January 28, 2012, 03:21:39 pm
I'm getting the string from a text file online that stores the value of either a 1 or a 0 depending on what the user clicked. The arduino coding is all good and responds to sending an H or L over serial to turn it on and off. The problem is just that processing doesn't seem to read the text file at all.
11  Using Arduino / Interfacing w/ Software on the Computer / On/OFF web interface need help! on: January 28, 2012, 02:09:14 pm
Hey guys I was reading this tutorial over here: http://projects.sindrelindstad.com/how-to-led-arduino-php-proc/

I followed that tutorial but there's a problem.

I am using zymichost to host my free website with php enabled and it seems that the php code is working because it DOES change the value in LEDstate.txt when you click on or off. The thing is that in the processing window it keeps saying that it's turning off the LED cause there's no value.  here's the processing code:

Code:
/*
 
A simple Processing script for enabling or disabling the LED on an Arduino using a web interface and serial communication.
Author: Sindre Lindstad
Created: 19th of January 2011
 
http://projects.sindrelindstad.com
 
*/
 
 import processing.serial.*;
 Serial port;
 
 void setup()  {
 
   /* This part must be altered to fit your local settings. The number in brackets after "Serial.list()" is where you declare what COM port your Arduino is connected to.
      If you get error messages, try a different number starting from 0 (e.g. 0, 1, 2, 3...) . */
    port = new Serial(this,"COM3", 9600);  // Open the port that the Arduino board is connected to, at 9600 baud
 
}
 void draw() {
 
  String onoroff[] = loadStrings("http://adamlight.zymichost.com/LEDstate.txt"); // Insert the location of your .txt file
  print(onoroff[0]);  // Prints whatever is in the file ("1" or "0")
 
  if (onoroff[0].equals("1") == true) {
    println(" - TELLING ARDUINO TO TURN LED ON");
    port.write('H'); // Send "H" over serial to set LED to HIGH
 
  } else {
 
    println(" - TELLING ARDUINO TO TURN LED OFF");
    port.write('L');  // Send "L" over serial to set LED to LOW
 }
 
  delay(5000); // Set your desired interval here, in milliseconds
 }

so basically it's not detecting whether on/off equals true or not.

If you check the website I'm hosting and you type "/LEDstate.txt" on the end then it will show a value of 1 or 0 like it should when you press the buttons. I don't know what is wrong. Here's the website: http://adamlight.zymichost.com/index.html
12  Using Arduino / General Electronics / Re: 20 Watt amplifier buzzing? on: April 09, 2011, 11:34:22 pm
okay first off I will check the components and reduce the gain of the amp a bit. I'll also check  if the capacitors are not dried up and such because the ones I used might have been no good so ill check again.

Thanks for the info.

But heres another brain teaser you guys might be able to help me with:

I took apart my old 10 watt guitar amp to see the circuitry and now when I connect it and power it u all it does is hum and the rectifier gets VERY hot and transformer get VERY hot too. I'm not sure what I have done to the circuit while taking it out.
13  Using Arduino / General Electronics / Re: 20 Watt amplifier buzzing? on: April 08, 2011, 06:46:44 pm
Yes, but take that almost non-existengt ripple and multiply by your audio gain of 50dB per the data sheet, on the order of 10-20,000x, and now that ripple becomes pretty audible.

okay well I added a 6400uF capacitor instead of the 1000uf and no difference. I am pretty sure it is from the transformer because my class power supply provides 12 v at 2amps and it works without buzz.

So now  think I must find a 2amp  transformer OR, if anyone can guide me the right way ,  how to get the amp to not output as many watts  therefore reducing my current need?
14  Using Arduino / General Electronics / Re: 20 Watt amplifier buzzing? on: April 08, 2011, 12:53:12 am
okay well tomorrow I can go get the schematic  and scan and post it here, and Ill also look for a bigger transformer.

About the filtering and such, I checked on an oscilloscope when I was bread boarding the power circuit and the ripple was almost non existent! So I don't think theres a problem with the capacitor.

CrossRoads yes the circuit is constructed more or less from what I can remember the same way you showed in your image.
15  Using Arduino / General Electronics / Re: 20 Watt amplifier buzzing? on: April 07, 2011, 08:18:48 pm
1) You could have ripple (power line hum) in the power you are feeding the TDA2005's.  1000uF is a very low value for a power amplifier filter capacitor, one would expect something 10x to 50x larger than that.  Try putting a MUCH larger capacitance there.

2) You could be picking up hum due to inadequate shielding of the audio input (which is rather sensitive.) 

Try shorting the power amp audio input directly to ground right at the TDA2005 chip. That would be one good differential diagnosis for seeing whether the hum was internal (from the amp power supply) vs. external (picked up in the audio input wiring.)

Okay I did what you said about connecting the input to ground but that didn't help at all, but like I said the transformer is rated at 6 ohms and the circuit provides 12 volts. That would require 2 amps right? And my transformer is only capable or "rated" at 1 amp.  would this be the problem?
Pages: [1] 2 3 ... 16