Show Posts
Pages: 1 ... 73 74 [75] 76 77 ... 174
1111  Using Arduino / Programming Questions / Inverse Logic on hardware serial on: July 12, 2013, 08:08:11 am
You can invert the logic using software serial but can this also be done on the hardware UART? Using a Mega2560 and specifying the inverse logic on a port by port basis instead of a blanket all ports hack?
1112  Using Arduino / LEDs and Multiplexing / Re: LED OOK modulation to send binary information on: July 12, 2013, 07:22:11 am
Untested code but the basic idea would be something like this...
const char message[] = {"Hello!"};
const byte outPin = 13;
const int beginDelay = 100;
const int zeroDelay = 50;
const int oneDelay = 25;
const int bitDelay = 10;

void setup() {

void loop() {
  for(int x = 0; x < sizeof(message) - 1; x++) {
    char a = message[x];
    Serial.print(" ");
    for (int y = 0; y < 8; y++){
      byte z = (a >> y) & 1;
      if (z == 0){
      else {

EDIT: Added LA sample from above code.
1113  Using Arduino / LEDs and Multiplexing / Re: LED OOK modulation to send binary information on: July 12, 2013, 04:01:06 am
Most weather station sensors use a 433Mhz wireless module that sends data using OOK so finding some examples of how they define 0 & 1 bits may be helpful and then substitute a LED for the RF module. I have attached the output of one such sensor. The long off hook is to signal the start of the message and then short off hooks are one's and longer are zero's. The signal is pulsed high for a short period between bits.
1114  Using Arduino / Networking, Protocols, and Devices / Re: Bluetooth Shield is not visible to some mobile on: July 12, 2013, 01:27:43 am
So it is HTC phone's limitation or some updates by CSR can solve this issue?
Finding/Writing and applying CSR updates is not a job to be taken lightly, I would not attempt it and I'm an idiot.  smiley-mr-green
1115  Using Arduino / LEDs and Multiplexing / Re: MAX7219 does not respond to code written using LedControl library on: July 12, 2013, 01:14:36 am
Also im having trouble looking for the "set up code" for driving the max7219 IC with the Arduino, could someone link it to me?
By far the most popular library for the MAX7219/MAX7221 is LedControl. It has several examples included in the library download.
1116  Using Arduino / Programming Questions / Re: Binary Communication - Command Request Question on: July 11, 2013, 11:03:05 am
You really need to know/supply more info on the ECU as there are several different serial protocols, speeds and voltages levels. Some voltage levels may/will damage your arduino if connected directly to pins.
1117  Using Arduino / Networking, Protocols, and Devices / Re: Bluetooth Shield is not visible to some mobile on: July 11, 2013, 10:57:43 am
Maybe the BT shield device class (Serial device) is not one your HTC supports, maybe it only does audio class for connecting headsets etc.
1118  Using Arduino / General Electronics / Re: Connect voltage divider to Arduino on: July 11, 2013, 10:46:33 am
Yes you need the black (ground) wire.
1119  Topics / Home Automation and Networked Objects / Re: How to connect a finger probe sensor (SPO2 sensor)to an arduino board? on: July 11, 2013, 04:50:23 am
This might be helpfull.
1120  Community / Website and Forum / Re: Website problems again? on: July 11, 2013, 03:56:56 am
I found that if you are logged in to the forum and then visit the home page, when you come back to the forum it won't work, but if you repeat those steps, it starts working again.
I wonder if the problem is related to this
1121  Community / Bar Sport / Re: The Perfect Murder. on: July 11, 2013, 02:30:25 am
Only problem is if someone you know is murdered and they cannot find the killer they will come knocking on your door due to your post.  smiley-wink
1122  Using Arduino / Project Guidance / Re: Reverse ingeneering "Blinky POV" on: July 11, 2013, 02:08:12 am
It has clock and a data so it's probably setting the data square to the bit value (black = 0 / white = 1) and then pulsing the clock square so the blinky knows to read the data and add it to the values already read, much like I2C protocol but a lot slower.
It must be sending configuration info on how the message is displayed along with the message data in ASCII/bitmap data.
To detect programming errors it must also be sending a data checksum or CRC value.
I would also assume the message is stored in EEPROM so you don't need to program it every time it's turned on. It would read the message into RAM and if it checks out then copy into EEPROM.
1123  Community / Website and Forum / 502 Bad Gateway on: July 10, 2013, 08:28:11 am
Been getting a few of these today.
1124  Community / Bar Sport / Re: Is this a valid ticket, or not? ... on: July 10, 2013, 07:11:39 am
Well I took it initially to mean "you are currently holding a valid ticket" (namely the ticket in my hand) but as my son explained to me the machine magically knows that I have a second ticket which is the valid one, and that this ticket is not that ticket.
It's a system to stop ticket touts. They (the company) keep the ticket to stop touts from getting them and selling on to impatient line jumpers for a small fee. Problem is, to know they hold a valid ticket for you they need to issue this not ticket ticket LOL
1125  Development / Suggestions for the Arduino Project / Update reference material supplied in the IDE download. on: July 10, 2013, 06:59:37 am
Just looked at the reference material that downloads with the 1.0.5 IDE trying to find out if the hardware Serial also supports the inverse_logic flag in the Serial.begin (or any other command) like SoftwareSerial does and I notice it's so out of date it does not even mention you can specify the protocol (8N1, 7O2 etc) after the baud rate that has been present online for months now.
Why are the local reference files so out of date? And can/how do I specify inverse logic for serial data?
Pages: 1 ... 73 74 [75] 76 77 ... 174