Show Posts
Pages: [1] 2 3 ... 57
1  Using Arduino / Project Guidance / Re: Alerting system for a person-of-interest on: February 01, 2014, 07:31:40 pm
The easiest way is to use GPS and transmit the data wirelessly.

You could create a proximity sensor by using a RF module system that has RSSI (Received Signal Strength Indicator.) You can get a rough estimate of distance by the strength of the received signal. Using three modules (or switched antennas) you might be able to triangulate the direction.

But, personally I would use GPS for this application.
2  Using Arduino / Audio / Re: Created a library for the MDFLY MP3 module (TDB380) on: October 03, 2013, 01:40:35 pm
How can you not find the library when it is attached to the very first post in this thread?

3  Using Arduino / Project Guidance / Re: Help with crossing on traffic light project on: September 20, 2013, 02:32:43 pm
That has now completely confused me  smiley-eek i am getting an error
traffic_lights_crossing.ino: In function 'void setup()':
traffic_lights_crossing:16: error: invalid conversion from 'int' to 'void (*)()'
traffic_lights_crossing:16: error: initializing argument 2 of 'void attachInterrupt(uint8_t, void (*)(), int)'
This is what i have put for the code

Your problem with that fault is that you didn't structure your interrupt correctly. The attachinterrupt command requires a function to point to. You put in "3" as your function. This is an int, but the function would be a void. So it is bitching about that.

Also, I wouldn't do it on change as you may get multiple triggers. Your button should be pulled up and then connected to ground when pressed. So you would change that to LOW.You also need to put the button on an actual interrupt line. On the Uno, that is pin 2 and 3.So, assuming you put the button on three, your new line in setup() would be:
attachInterrupt(3, crossing, LOW);

Now, when the button is pressed, it will interrupt whatever it is doing and run crossing().
4  Products / The Arduino Starter Kit / Re: COMPLAINT: Starter kit components not fitting on: May 17, 2013, 10:00:33 pm
Wow... that's a pretty big one to screw up. You could put a 10K resistor in parallel with the pot and that would make the total resistance always less than 10K. But, yes, it should have came with the proper pot.
5  Using Arduino / Programming Questions / Re: Zcd(500Hz) Sin(50Hz) change output Zcd to 50Hz on: May 17, 2013, 09:58:19 pm
You are trying to create a zero crossing detector? Check this out:

You can use a decade counter to reduce the 500hz to 50Hz. It should work with a sine wave, but the output will be an integrated squarewave.

When you say ZCD, you are talking about a Zero Crossing Detector, and this is what is confusing. The Zero Crossing Detector is a function, not an input. Please post a detailed explanation of what you are trying to do from beginning to what you want as a result. That will better help people to help you.
6  Using Arduino / Project Guidance / Re: Two-way radio SELCAL interface on: April 30, 2013, 07:41:43 am
LM565/567 or CD4046 Tone decoders?

You can play simple audio samples from the Arduino. Limited by storage space. An external serial eeprom would give you a bit more space for this.

The rest is fairly simple and well within the capabilities of the Arduino. You *could* bypass the tone decoders and use the arduino as the tone decoder. I have seen examples of this all around the web, but I have always been more partial to hardware than code since I am not an excellent programmer.

7  Using Arduino / Displays / Re: How to read HD44780 LCD programmatically on: April 29, 2013, 05:05:24 am
I just see no usefulness to this at all.
When the device was designed, decades ago, there was some usefulness.
I gave the reasons behind the inclusion of this capability two months ago, in the second paragraph of reply # 6.



No offense, but write it yourself, then. lol

I did not feel that it was useful enough to spend my time writing it, testing it, debugging it, refining it and maintaining it regardless of your reasons. If you do, then write it...
8  Using Arduino / Displays / Re: How to read HD44780 LCD programmatically on: April 28, 2013, 03:47:08 pm
I didn't. Got pretty far, but simply couldn't convince myself that it was useful at all.

What you are describing could be handled with a simple text buffer. Since you are already in control of what is displayed on the screen, just manipulate it in memory and update or write to external memory.

If you put 'A' in row 1, column 1, you already know what is going to be in row 1, column 1.

I just see no usefulness to this at all.
9  Using Arduino / Project Guidance / Re: please help me please ! on: April 24, 2013, 05:11:53 am
Do you have the equivalent of the "PicBasic Bridge Program" for the arduino? Based on that guide, there is a program that is run on the basic stamp which is used to connect between the stamp and the module. If you don't have that on the arduino, then I would imagine it would complain.
10  Using Arduino / Project Guidance / Re: Wall Wort Powered Arduino Runs Program but Needs USB to Start Properly on: April 21, 2013, 07:12:32 pm
I think the problem is trying to run things off of 5V on the external jack. While current will pass through the 5V regulator, there will be some voltage drop which is probably causing a Brown Out reset. Plugging in the USB cable maybe gets the current flowing enough. Seems odd, but then microcontrollers do some odd things when the voltage gets a bit too low.

Take a voltage measurement at the 5V line while trying to power it this way.

Ideally, you need at least 1V higher than the regulator to work properly, so 6V minimum. The Arduino site says 7.5V
11  Using Arduino / Project Guidance / Re: Robot arm to push buttons on: April 15, 2013, 02:58:58 pm
The simplest way is to use the servo library and just use servos to push the buttons if you cannot modify the fan to just connect to the buttons directly.
12  Using Arduino / Microcontrollers / Re: ATMEL Device selector on: April 15, 2013, 01:57:45 pm
It came from the web interface. On the Atmel site, you just select Product Search. But I find that clumsy, so I just downloaded the data to excel and got rid of fields that were not relevant and rearranged the columns by what was most important to me (and probably most people.)

So I didn't really do anything special. If you are able to put it into a web interface, go for it.
13  Using Arduino / Microcontrollers / ATMEL Device selector on: April 15, 2013, 01:00:11 am
Nothing magic. But I downloaded the ATMEL parametric search for both the Mega and Tiny AVRs and converted them to Excel with filtering and ease of viewing.

I also broke out into another sheet just the devices available in DIP packages for most hobbyist prototyping.

Thought I would share...

14  Using Arduino / Project Guidance / Re: A Digital Beehive: A scientific study proposal. on: April 15, 2013, 12:24:44 am
Consider the use of RFID temperature sensors. Each one would have a unique ID, completely wireless, no power needed. And they would follow the frames around regardless of where you put them. You pretty much just encapsulate them and drop them wherever you want.

You may need a RFID reader per box, though because the range of RFID is generally limited (however, there are ways around that.)
15  Using Arduino / General Electronics / Re: Trying to understand a simple flashlight circuit on: April 15, 2013, 12:09:52 am
Based on my parametric search, the ATTiny43U is probably the best processor for this. It operates .7v and 5.5v, and is one of the picopower processors (very low current)

The only real drawbacks are that it has only 256 bytes of RAM , so you may have to write assembly (your code is so simple, I don't think you would have trouble with that), and it doesn't come in a DIP package (but does come in a SOIC package.)

Also, as a tip, the slower your clock frequency, the less power the AVR will consume. And make use of the sleep() function as much as possible.

All in all, the Arduino core is not ideal for this application, really. You might use it for development, but for a final application, I would look at writing assembly code.
Pages: [1] 2 3 ... 57