element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum wireless display
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 14 replies
  • Answers 2 answers
  • Subscribers 393 subscribers
  • Views 860 views
  • Users 0 members are here
  • led
  • arduino
Related

wireless display

billpenner
billpenner over 11 years ago


I am attempting to build a keypad decoder, a wireless transmitter, a receiver and a 3inch LED display.

The decoder is working but I am having trouble determining what type data to transmit ie. character, byte or integer.

Since I will have to decode the data at the receiver, what would be the best type to use?

The initial code is;

 

#include <Keypad.h>

const byte ROWS = 4; // Four rows
const byte COLS = 3; // Three columns
// Define the Keymap
char keys[ROWS][COLS] = {
  {'1','2','3'},
  {'4','5','6'},
  {'7','8','9'},
  {'#','0','*'}
};

byte rowPins[ROWS] = { 9, 8, 7, 6 }; // keypad rows to Arduino pins

byte colPins[COLS] = { 12, 11, 10 }; //keypad columns to Arduino pins

// Create the Keypad
Keypad kpd = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );

#define ledpin 13 //define output pin to xmitter

void setup()
{
  
  pinMode(ledpin,OUTPUT);  //for testing
  digitalWrite(ledpin, HIGH); //for testing
  Serial.begin(9600);
}

void loop()
{
   //for (int(c); c <2; c++); I would like to accumulate three bytes and transmit together if possible
   char key = kpd.getKey();
  if(key)  // Check for a valid key.
  {
    switch (key)
    {
      case '#':     //Clear data for re-entry
        digitalWrite(ledpin, HIGH); // for testing
        break;                      // for testing
      case '*':     // Display data on receiver
        digitalWrite(ledpin, LOW);  // for testing
        break;                      // for testing
    
      default:    //send data to xmitter     not working! It only sends to! computer display. 
        Serial.println(key);      // for testing
       

     }
  }  
}

All help would be greatly appreciated. This is a project for our church.

Thanks

Bill

  • Sign in to reply
  • Cancel
  • billpenner
    0 billpenner over 11 years ago in reply to kidiccurus

    I have about 120 ft. to the display and no way to use wire. You are correct, I wish I could use wire. I have some NRF 24L01 but I am not locked in.

    easier systems are welcome. However Bluetooth is out because of the distance.

    Thanks for your reply.

    Bill

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • billpenner
    0 billpenner over 11 years ago in reply to Robert Peter Oakes

    Wow you lost me completely. I have seen "Union, Structures and Cast" but I am very new to programming especially C++. If I must I will spend more time researching then get back to you guys.

    I have data that am now getting from the keyboard and  sending it to the serial (USB port to the computer).

    I will no longer use the computer after the system is ready  to use. I have data  data that am now getting from the keyboard and  sending it to the serial (USB port on the computer).The data is probably best sent as a series of Bytes.I understand that the USART will just send the Bytes  as binary groups. Is that right?

    Thanks for the help

    Bill

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 11 years ago in reply to billpenner

    So the NRF24L01s will easily do the job for you, they should make that distance providing there are not too many walls in the way

     

    you can also look at this from a good friend of mine http://www.scargill.net/nrf24l01-transceiver-and-arduino/

     

    Hope it helps, any more questions please ask away

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • billpenner
    0 billpenner over 11 years ago in reply to Robert Peter Oakes

    Great link. Thanks.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
<
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube