Show Posts
Pages: 1 [2] 3 4 ... 152
16  Using Arduino / Programming Questions / Re: Fibonacci Sequence - value's range on: April 11, 2014, 03:48:41 am
As pylon states it's an int problem.

This functions parameters...
Code:
void printNumbers(int d, int e, int f){
don't match the variable type passed
Code:
unsigned long a = 1;                   // variables used to calculate the Fib. numbers
unsigned long b = 1;
unsigned long c;
so the 32 bit unsigned number is being truncated to a 16 bit signed number type.
17  Using Arduino / Programming Questions / Re: Need help with programming for my project on: April 11, 2014, 03:41:26 am
Wire the 9 switches in series and you only need 1 digital pin and the same code you have written.
18  Using Arduino / Programming Questions / Re: Help!! Am Getting A Error I Cant Resolve Any Help Would Be Loved At This Point! on: April 11, 2014, 03:37:53 am
Apart from the previously pointed out error your missing a } before
Code:
long microsecondsToInches(long microseconds)
19  Using Arduino / Project Guidance / Re: Automated Kitchen Garden Project on: April 10, 2014, 11:17:43 am
The easy way may be to tweak your processSyncMessage() function so it can also detect alarm on/off times and adjust them in the same way it sets the time but obviously with a different message headers.
20  Using Arduino / Networking, Protocols, and Devices / Re: DMX-512 over 433MHz WIRELESS cheap radio on: April 09, 2014, 11:13:46 am
Things that would help with wireless DMX is to reduce your universe & channel count as much as possible. Further reductions of maybe only sending the channels needed for your wireless fixture or only sending difference data after sending initial full universe/channel data.
Someone has done AVR code/harware to control DMX over Wi-Fi
21  Using Arduino / Project Guidance / Re: Non-camera static object tracking on: April 09, 2014, 10:23:24 am
I have always thought something like this is beyond Arduino but an Atmel Simply Design contest entry may prove otherwise...
22  Using Arduino / Networking, Protocols, and Devices / Re: DMX-512 over 433MHz WIRELESS cheap radio on: April 09, 2014, 10:11:59 am
Someone on here has developed a wireless DMX thingy but I cannot bring myself to using the naff search facilities to find it.
http://forum.arduino.cc/index.php?topic=208648.0
23  Using Arduino / Networking, Protocols, and Devices / Re: SOLVED: Identify serial protocol from logic analyzer picture? on: April 09, 2014, 09:45:45 am
I'll need to look into inverted serial signals, and how to fix this in hardware. I'm going to use bluetooth between the scale and the arduino which will make my client very happy.
You can use logic inverter chips if needed but the Software serial has a poorly/un documented signal inversion flag. So you could connect the scales to software serial and pass results to hardware if needed.
Code:
  // public methods
  SoftwareSerial(uint8_t receivePin, uint8_t transmitPin, bool inverse_logic = false);
24  Using Arduino / Networking, Protocols, and Devices / Re: Identify serial protocol from logic analyzer picture? on: April 09, 2014, 07:33:34 am
Can you use the protocol analyser/decoder in Salea to display the results?
25  Community / Website and Forum / Re: Heartbleed SSL Bug on: April 09, 2014, 05:50:15 am
Thanks, that looks good to my untrained eye.
26  Community / Website and Forum / Heartbleed SSL Bug on: April 09, 2014, 03:05:43 am
Is this site susceptible to the Heartbleed SSL bug or is your Nginx up to date?
27  Using Arduino / General Electronics / Re: Switching 220V light bulbs on: April 08, 2014, 09:32:32 am
How many bulbs and of what wattage are they?
eBay have cheap (to my mind) relay modules that can switch 10A @ 250V (2.5 kilowatts)  each.
28  Using Arduino / Project Guidance / Re: How can I use spi to emulate this? on: April 08, 2014, 09:09:49 am
You have told us the protocol is 3LB but is there any documentation on how this protocol works else the LA trace is going to be a lot harder to decipher.
Is data direction only one way or does the display also send data back. If it sends back then your either missing the MISO line or the protocol is based on something like SISO and maybe the enable line is data direction?  
Possibly the first byte with enable low is a request from display and the other bytes sent with enable high are to the display or the first one with enable low is a command and the others are data. Very difficult without some documentation.
29  Using Arduino / Project Guidance / Re: How can I use spi to emulate this? on: April 08, 2014, 05:52:44 am
Do you have more details on the 3LB protocol?
To emulate this you may need to resort to bit banging.
30  Using Arduino / Programming Questions / Re: Changed processor from PIC to Arduino,completely new need help with programming on: April 08, 2014, 04:40:41 am
Other things that may help are pinout/port descriptions. Find the UNO on this thread. Port D is the only 8 bit wide port available but it includes the UART RX/TX pins so if you want to use it to drive the display then you cannot use the Serial monitor and may need to disconnect these pins to upload a new sketch.

Datatype and function references here . unsigned short looks to be byte (8 bits). int is signed 16 bit number.

Also be aware the MAX current a pin can sink is 40mA and overall current sink of device is 200mA so check your circuit for driving the 7-segment display.

You look to be using a timer to count pulses so if your still going to do it that way then this may be helpful in setting up the timer as a counter. Another approach for the UNO would be to use an interrupt but the hardware interrupt pins also reside on port d.

Pages: 1 [2] 3 4 ... 152