Show Posts
Pages: 1 2 3 [4]
46  Forum 2005-2010 (read only) / Interfacing / Getting input from sparkfun Keypad on: November 09, 2008, 10:54:05 am
Hi guys.

I'm trying to figure out how i can use the keypad library to get the user to enter a value, i e press 2 then 3 then # on the keypad for 23 followed by an enter. I can read the keypad and get individual readings, but how can i convert the 2 and 3 to an int of value 23?

maybe i'm missing something but i cant work this out!!!

thanks for your help.

47  Forum 2005-2010 (read only) / Interfacing / Re: inter-arduino communication on: October 15, 2008, 03:22:22 pm
ok thanks, how do i send a hex code? is it just a case of sending:


or do i need to do something else?
48  Forum 2005-2010 (read only) / Interfacing / inter-arduino communication on: October 15, 2008, 03:09:34 pm
Hi all, First post on the forum but been using it for info for a while. Brilliant!

Anyway, i'm starting to develop a simple home automation system. so far i've started to look at how i'm gonna send messages to the slave arduino's from the master. So obviously i'm gonna need addressing, and a protocol of some sort. this is what i've got so far, using the messenger library.


// This example sets all the values of the digital pins with a list through a callback function

#include <Messenger.h>
// Instantiate Messenger object with the default separator (the space character)
Messenger message = Messenger();
 int LEDpin = 13;
// Create the callback function
void messageReady() {
    int i = 0;
    int tempstr = 0;
    int startBit = 9;
    int userInput[2];
       // Loop through all the available elements of the message
       while ( message.available() ) {
      for(i = 0; i<3; i++) {
            userInput = message.readInt();
        if (userInput[0] == startBit) {
          switch (userInput[1]) {
            case 1:
                  if(userInput[2] <2) {
            case 2:
                Serial.print("Not Understood");
        else {

void setup() {
  // Initiate Serial Communication
  // Attach the callback function to the Messenger

void loop() {
  // The following line is the most effective way of using Serial and Messenger's callback
  while ( Serial.available() )  message.process( () );


What do you think? basically i send a "9" as a start bit, then it looks at the next bit to decide where the message is destined, i.e arduino 1 or 2. Then it looks at the last valule to decide what to do. adding another bit on the end could allow for more flexibility. Anyway, is there a better way to do this that using switch/case?

Any info or help will be very gratefully recieved!!!

49  Forum 2005-2010 (read only) / Exhibition / Re: LumiNet (based on attiny84) on: May 26, 2009, 06:45:16 am
Brilliant, I think i've got the pinouts from the source code but had to convert it to PDIP/SOIC.

Which pins are used as UART for the bootloader?

50  Forum 2005-2010 (read only) / Exhibition / Re: LumiNet (based on attiny84) on: May 26, 2009, 03:46:35 am
Is there any more documentation available? Is I2C working? Thanks
51  Forum 2005-2010 (read only) / Exhibition / Re: LumiNet (based on attiny84) on: May 20, 2009, 10:16:21 am
Sorry, i meant for which pin in the ide relates to the pin on the chip, for instance if i do a digitalwrite(1, HIGH) which physical pin will go high? Also which pins are which ADC, and does i2c work?

Also do you have any hardware designed as a prototype board? i'm halfway through designing one to use in a breadboard, as with the arduino nano, but i would like to see your take on the hardware.

52  Forum 2005-2010 (read only) / Exhibition / Re: LumiNet (based on attiny84) on: May 20, 2009, 05:56:10 am
Good to see its been released. I'm very much looking forward to using this in an upcoming project. I haven't had a chance to look at the new IDE yet, but any chance we could have some info such as what additions you've used and what the pin allocations are?

Thanks for you work!

53  Forum 2005-2010 (read only) / Exhibition / Re: LumiNet (based on attiny84) on: April 15, 2009, 01:42:04 pm
Has there been any more work done on this? i'm very interested to see the modified files. this could be very useful for me!
54  Forum 2005-2010 (read only) / Frequently-Asked Questions / Google Sketchup Scripting on: November 30, 2010, 12:48:40 pm

Has anyone seen or thought about using Google Sketchup and Ruby to create 3d boards from eagle .brd files? Much the same as eagle3d but actually in 3d cad?

Just throwing that one out there for those with far more ability than me!
55  Forum 2005-2010 (read only) / Frequently-Asked Questions / Hantek dso-220 on: November 24, 2010, 07:31:58 am
Hi, has anybody got the drivers/software for the Hantek dso-220? I cant find them anywhere! Thanks
Pages: 1 2 3 [4]