Loading...
  Show Posts
Pages: 1 [2]
16  Using Arduino / Programming Questions / Re: Can't get IRrecvDemo example to work as expected on: June 07, 2012, 01:41:18 pm
I have this one
http://www.dfrobot.com/index.php?route=product/product&product_id=366

and apparently it generates different codes


My code works but sometimes buttons are missed and I have to press again to get a positive result.

I was confused because I thought I read abnormal HEX codes  but I looks like a have an  IR remote control that sends different codes.



17  Using Arduino / Programming Questions / Re: Can't get IRrecvDemo example to work as expected on: June 07, 2012, 11:10:15 am
Here is the code. For testing I only added to check if the  "VOL +" button is pressed.

Results are not very consistent and I wonder why I don't see the codes as shown here



as explained on this page http://www.e-shore.com.my/homepage/all-projects/193-ir-remote-control-mobile-robot.html

Do various versions of this remote exist ? I would expect them to use the same hex codes

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;

IRrecv irrecv(RECV_PIN);

decode_results results;

void setup()
{
  Serial.begin(9600);
  irrecv.enableIRIn(); // Start the receiver
}

void loop() {
  if (irrecv.decode(&results)) {
    Serial.println(results.value, HEX);
   
    if(results.value==0xC9C3741)
      {
      Serial.println("VOL + pressed");
      }
      else
      {
      Serial.println("other button pressed");
      }   
    irrecv.resume(); // Receive the next value
  }
}
18  Using Arduino / Programming Questions / Re: quick help -- button pressing and timing on: June 07, 2012, 08:45:17 am
Take a look here to find out how you can connect 5 pushbuttons using only a single analog input.
the timing problems are also solved

http://www.dfrobot.com/wiki/index.php?title=Arduino_LCD_KeyPad_Shield_%28SKU:_DFR0009%29
19  Using Arduino / Programming Questions / Re: Can't get IRrecvDemo example to work as expected on: June 07, 2012, 06:10:06 am
I'm at the office right now, can't access the sketch I used to test.
I"ll post it tonight.
Thanks so far.
20  Using Arduino / Programming Questions / Re: Can't get IRrecvDemo example to work as expected on: June 07, 2012, 02:43:50 am


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;
 
IRrecv irrecv(RECV_PIN);
 
decode_results results;
 
void setup()
{
  Serial.begin(9600);
  irrecv.enableIRIn(); // Start the receiver
}
 
void loop() {
  if (irrecv.decode(&results)) {
    Serial.println(results.value, HEX);
    irrecv.resume(); // Receive the next value
  }
}
21  Using Arduino / Programming Questions / Can't get IRrecvDemo example to work as expected on: June 06, 2012, 04:46:55 pm
I bought the DFRobot IR Remote controller kit and tried to use it with the IRrecvDemo.
Many applications can be found that are based on the IRrecvDemo, but none seem to work for me.
Without making changes to IRrecvDemo, I tried it with IDE 23 but my Serial.print always shows 8 character values rather than the 6 character values as illustrated below




 I always get 8 digit hex codes like these:

25802501
CBD2CCFD
FFFFFFFF
57E346E1
D9EF995E
B1EFBA9D
B1EFBA9D
6E2B307C
6BFD8B01
1E29FBFF
925D5B5D
1E90961
FFFFFFFF

As a result the code cannot work

Code:
else if(results.value==0xFD906F)
{
motor(-40,-40);
}


I'm sure the hardware is OK, the sample code  found here http://www.dfrobot.com/wiki/index.php?title=IR_Kit%28SKU:DFR0107%29 works OK. Note that this sample code does not use the IRremote.h library.


Any help would be appreciated.
22  Using Arduino / Audio / Re: building star trek door help with sound on: March 23, 2012, 07:02:30 am
using this mp3 shield http://iprototype.nl/products/arduino/shields/mp3-player mp3's play instantly, no delay using Bill Porter's lib.
http://www.billporter.info/sparkfun-mp3-shield-arduino-library/
23  Using Arduino / Installation & Troubleshooting / Re: Problem uploading Arduino One [Mac] on: February 24, 2012, 09:31:28 am
What API version are you using ?
Did you select the correct board in the API?
24  Using Arduino / Installation & Troubleshooting / Re: Arduino 1.0 Example>Ethernet>PachubeClient on: February 21, 2012, 09:28:11 am
Good !
25  Using Arduino / Installation & Troubleshooting / Re: Arduino 1.0 Example>Ethernet>PachubeClient on: February 20, 2012, 03:06:59 pm
It 's solved but I did not find it myself (credits to WARD - my personal guru)


2 problems I encountered:

1: the included API 1.0 example sketch is not correct

Replace

    client.print("Host: www.pachube.com\n");
with
    client.print("Host: api.pachube.com\n");

(UNACCEPTABLE that this is not correct in an example sketch, people get confused and loose Arduino appetite)


2: make sure that the key you created in the Pachube website has

Permitted Methods    all

I would NEVER have found this myself, the Pachube website urgently needs a simple, correct, straightforward geting started file on the home page and all outdated data should be updated or deleted.
26  Using Arduino / Installation & Troubleshooting / Arduino 1.0 Example>Ethernet>PachubeClient on: February 01, 2012, 05:25:39 pm
I'm trying to make the Arduino 1.0 Example>Ethernet>PachubeClient work but is won't.

I've entered my IP/feed/key as described
 
// fill in an available IP address on your network here,
// for manual configuration:
IPAddress ip(10,0,1,20);

// fill in your feed address here:
client.print("PUT /api/46529.csv HTTP/1.1\n");
 
// fill in your Pachube API key here:
client.print("X-PachubeApiKey: *****************************************************************************
\n");

and compiled/uploaded without error.


The monitor shows this text

connecting...
HTTP/1.1 401 Unauthorized
Date: Wed, 01 Feb 2012 22:20:51 GMT
Content-Type: text/plain; charset=utf-8
Connection: close
WWW-Authenticate: Basic realm="Web Password"
Cache-Control: no-cache
Content-Length: 50
Age: 0

You do not have permission to access this resource
disconnecting.

I don't know if the problem is the sketch or my patchube feed or key.
If someone could confirm that the example sketch should work after entering the personal key/feed, I know the problem is at the pacube side configuration.

Any help would be appeciated.

27  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet on Arduino Mini on: May 30, 2011, 05:36:46 am
What shield are you using ?
28  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet on Arduino Mini on: May 29, 2011, 01:01:24 pm
I'll gain a lot in height, but not in surface, that's correct.
I have 2 mini's that i've never used, now I'm doing a home automation project and I'm trying to use the mini's for this project.
29  Using Arduino / Networking, Protocols, and Devices / Re: Ethernet on Arduino Mini on: May 28, 2011, 10:14:47 am
You mean to connect pins 10 - 13 of the ethershield to pins 10-13 of the mini ?

The ethershield does not have the SPI connector, it's the old version (not MEGA compatible).

I'll need to make 3.3 V power supply too as the mini does not have it, looks like the ethershield really needs the 3.3 V

30  Using Arduino / Networking, Protocols, and Devices / Ethernet on Arduino Mini on: May 27, 2011, 05:01:48 am
Has anybody ever tried to connect the Wiznet W5100 ethershield (NOT the MEGA compatible version) to an Arduino Mini ?

www.freeduino.eu/index.php?main_page=product_info&cPath=1&products_id=79

I would like to make both work together for a reduce space project.

Any help would be greatly appreciated 
Pages: 1 [2]