Show Posts
Pages: 1 2 3 [4]
46  Using Arduino / Programming Questions / Re: Convert long to hex string on: August 07, 2011, 04:21:23 am
Phew - I'm glad it wasn't me smiley
Thanks

Si
47  Using Arduino / Programming Questions / Convert long to hex string on: August 07, 2011, 03:29:22 am
Week 1 Arduino newbie:)
I'm decoding IR codes using Ken Sherriff's IRLibrary but I'm having problems in checking for particular codes

This code
Code:
...
unsigned long codeValue;
...
(use lib to get a value)
...
   Serial.println(codeValue);
    String sCodeValue = String(2576,HEX);
    Serial.println(sCodeValue);
    sCodeValue = String(codeValue,HEX);
    Serial.println(sCodeValue);

 produces

2576
a10
2576

whereas I was expecting/hoping for

2576
a10
a10

Can someone tell me what language error I've made please? smiley
(Basically I'd like to compare sCodeValue against a set of values but I have those values in Hex so I don't want to have to translate them all to decimal)

regards

Simon


48  Using Arduino / Microcontrollers / Re: Cheapest way to program standalone project on: August 07, 2011, 01:51:51 am
@drew and crossroads - ta very much smiley

Simon
49  Using Arduino / Microcontrollers / Re: Cheapest way to program standalone project on: August 06, 2011, 04:28:23 pm
@drew - thats the right price smiley  but are there any instructions on how to use one (or a compatbile equivalent) to upload a Uno sketch with it?
@westfw - I've found a few (I've even found a post saying that the Uno does work with ArduinoISP!) - have you got a link to one you used yourself?
regards
Simon
50  Using Arduino / Microcontrollers / Cheapest way to program standalone project on: August 06, 2011, 03:08:14 pm
I've just bought a starter kit that came with an Arduino Uno and I'd like to build a standalone version of an IR Transcoder  Sketch (to make my TV remote control my DVD player) and it seems I can't use it to directly program a standalone ATMega 328 chip because of a unresolved software issue with the UNO optiboot bootloader  smiley-sad

As a family man with a strict budget for my toys smiley I'd like to know what the cheapest way to get my sketch from a Uno onto a standalone project.

Any ideas please smiley

regards
Simon
PS Loving Arduino smiley
Pages: 1 2 3 [4]