Show Posts
|
|
Pages: [1] 2
|
|
2
|
Using Arduino / General Electronics / Re: Uno with screw terminals
|
on: March 22, 2011, 01:13:17 pm
|
For the archives, since engrjhnsn already solved this for himself: perhaps you could buy an original (unassembled) two-piece screwshield kit, and mount the components on the opposite sides of the boards? (Which should result in the wings facing inward instead of outward).
I was looking that as well if they are the ones I am thinking. My thought was that it would interfere with the mounting post inside the box that the board is positioned with. It would be interesting to see one done though. Thanks for the suggestion.
|
|
|
|
|
3
|
Using Arduino / General Electronics / Re: Uno with screw terminals
|
on: March 21, 2011, 09:14:31 pm
|
Terry, I was considering those boards but the spacing of the holes doesn't seem to accomodate the screw terminals, .1in vs 3.5mm.
There ARE various screw terminal blocks with .1 Inch spacing available. Some of us with that Western Mentality used to think that everything was in Inches  or even in 64ths of an inch... Digikey would have some I'm sure... thanks Terry, I just ordered some from digikey. I hadnt thought of them but should have. Its been about 10yrs since I have ordered from them. I was too busy looking at all the arduino sites. I just need to get the board ordered now.
|
|
|
|
|
4
|
Using Arduino / General Electronics / Re: Uno with screw terminals
|
on: March 21, 2011, 09:12:18 pm
|
Unless you are using the features of the USB chip what about the nano on its terminal board like I showed? The combo is smaller than the UNO and has more inputs.
I already have the uno and don't want to buy another arduino. I actually almost bought that one in the first place because of its size but liked that the uno has boxes already made for it. Problem now that I didn't see when I started was how to get the screw terminals to fit in the box as well.
|
|
|
|
|
6
|
Using Arduino / Project Guidance / Re: Tone function bug or not?
|
on: March 20, 2011, 01:44:09 pm
|
|
Thanks coding badly, sometimes searching will take days to find answers. I don't understand why this is not spelled out in the main site tone reference. I did download that library before but never read all the details because I didn't use it yet. I will try that library then.
Thanks
|
|
|
|
|
7
|
Using Arduino / General Electronics / Uno with screw terminals
|
on: March 20, 2011, 01:36:03 pm
|
|
Other than the ScrewShield can someone point where I can find a way to add screw terminals to my Uno. I still need it to fit inside the plastic enclosure that is offered by spark fun. So the width of the board can not be wider than the Uno. I would build my own but it seems hard when the pin spacing is not the same.
thanks
|
|
|
|
|
8
|
Using Arduino / Project Guidance / Tone function bug or not?
|
on: March 20, 2011, 12:40:48 pm
|
|
Anyone run the Tone function under 31Hz? I tried only the line tone(pin,30) and no other code and the output is some random frequency. From 0-30Hz it does this. It might be 1200Hz at 30 then 500Hz at 28. Is this a possible bug? I tried to look at the code library but I don't understand the low level stuff.
|
|
|
|
|
9
|
Using Arduino / Project Guidance / Re: Frequency Modulator
|
on: March 18, 2011, 11:02:42 pm
|
well I finally got my uno working. here is one of my current sketches. however can someone tell me why the print out line shows the frequency varying? it jumps from 57, 28, 56, 60, 57. I am using a good 5MHz function generator for my input. I don't have a scope until next week to verify. I also get strange results if I use the tone function to output from one pin and input it to my input pin. The tone seems to work better however it wont run under 31hz. I was only using for testing when I didn't have the generator hooked up. int vssPin = 0; // VSS input pin 0 = irq2 int testPin = 7; // tone output for testing as virtual input int period_flag; unsigned long incoming_time; unsigned long old_time; long period_interval; unsigned long currentMicros; unsigned long previousMicros; int toggle; float freq;
void setup() { pinMode(testPin, OUTPUT); Serial.begin(115200); attachInterrupt(vssPin, timing, RISING); // VSS interrupt attached to IRQ 0 = pin2 //tone(testPin, 30); }
void loop() { // start timing interval if (period_flag == 1) // flag is set by the ISR { incoming_time = micros(); // capture the time period_interval = incoming_time - old_time; // find the difference from prior time old_time = incoming_time; // set the prior to the current time for the next comparison period_flag = 0; //freq = 1000000.0 / period_interval; //Serial.println(freq); } currentMicros = micros(); // sample the time if (currentMicros - previousMicros >= period_interval) // more than our interval? { long per = currentMicros-previousMicros; // save the last time we okayed time updates previousMicros = currentMicros; // save the current time for next comparison toggle = 1-toggle; // results in 0 1 0 1 ... float freq2 = 1000000.0 / per; Serial.println(freq2); } // end of time interval } // end of void loop
void timing() { period_flag = 1; }
|
|
|
|
|
12
|
Using Arduino / Installation & Troubleshooting / error compiling
|
on: March 16, 2011, 11:26:04 am
|
|
Can someone help me troubleshoot this? I have had nothing but trouble this morning. I am using windows 7 and a new uno. This is the first time I have hooked this all up. At first I had problems with drivers, and I still may but it doesn't complain about com ports right now just this error.
C:\arduino-0022\hardware\tools\avr\bin\avr-ar: pins_arduino.c.o: No such file or directory
Thanks
|
|
|
|
|
13
|
Using Arduino / Project Guidance / Re: Frequency Modulator
|
on: March 04, 2011, 08:55:15 am
|
|
crossroads, that is right. Do you have a code example on doing this. I have never programmed one of these. I can program vb and php and did a basic stamp about 10yrs ago so I think with some examples I can catch on. Also, is there another way with hardware to achieve the same thing? like a 555 or something. I would rather go this route as I like to program and think I would have better control.
|
|
|
|
|
14
|
Using Arduino / Project Guidance / Re: Frequency Modulator
|
on: March 03, 2011, 11:19:16 pm
|
|
retrolefty, thanks for the example, I will take the time to read through it. Yes I need a square wave out, however it needs to be a function of a square wave input +- % of another input like a analog volt from a potentiometer.
|
|
|
|
|