Show Posts
Pages: 1 ... 3 4 [5] 6 7 ... 93
61  Using Arduino / Project Guidance / Re: GPS accurate to cm's? on: December 15, 2013, 09:33:06 am
It is only $400 / receiver + XBee costs.  Soon to be $200!
62  Community / Products and Services / Re: Unmanned Quad Copter Project on: December 11, 2013, 06:16:31 pm
The code is similar!  Some of the autonomous code I have written for Arduino actually runs better on a ChipKit because it's faster.  You can change the loop delay and everything else works.
63  Using Arduino / Motors, Mechanics, and Power / Re: 28BYJ-48-5V stepper motor - driver sketch on: December 11, 2013, 06:02:07 pm
Once you get my code working turning 14x is one line of code.  PM me your phone number maybe I can help.
64  Using Arduino / Motors, Mechanics, and Power / Re: New 28BYJ-48 library on: December 11, 2013, 05:58:11 pm
@bino-  Pin A0 on Arduino should be connected to a motor coil.  Any of the 4.   Thru a 5k resistor for safety.

1) You should rarely adjust motorSpeed manually in the code.  Instead use a different RPM value in the function calls.  The minimum depends on the load and voltage.

2) off( ) turns off the coils. 

@paul- Try uncommenting a line in setup()? You can test any of the functions with DegRPM in them.

@grey- It is difficult to do 2 at once.  I had made a list of all the functions and variables you must duplicate and rename somewhere in this post.

I do not use degrpmEZ.  But you can!  It's similar to other functions.  It disables some features as you can see.

PDC?  Like when center is stop.  A small move rotates slowly.  Larger increases the speed?  This may be a case where you change motorSpeed to vary the delay between each single step.  Or you can go 10 degrees then read the speed from the joystick for the next 10 degrees?

Once you test my functions and understand them an idea will come to you.
65  Using Arduino / Project Guidance / Re: wireless Arduino time synchronization on: November 26, 2013, 09:34:55 pm
It is so easy to apply a constant correction in software using a time source to calibrate it.  This can give you 1PPM accuracy or drift over time.  If you keep the temperature near the original, you don't need GPS anymore to measure absolute time.
66  Using Arduino / Project Guidance / Re: Pre-synchronizing two arduinos on: November 26, 2013, 09:29:03 pm
See my link above for a short code example.  Lefty it is done in software only.  No parts needed.  You can see how long experimentally it stays within 1ms always for hours in my tests.  You can also measure how long it takes to drift 10us.  From this data you can calculate the PPM result.  Anyone try it with PPS pin?
67  Using Arduino / Project Guidance / Re: wireless Arduino time synchronization on: November 22, 2013, 11:11:12 am
5ms / second drift?  I've gotten 1PPM after calibrating with a constant in software.  Assuming no temperature change.  An old GPS can get you 10ms absolute time.  If you want 100 nanoseconds you need a GPS with a PPS pin output.  That's how I tested the software calibration.  You need to tell us what accuracy you require.  These methods can even be used to estimate the speed of light over a mile distance.
68  Using Arduino / Project Guidance / Re: Pre-synchronizing two arduinos on: November 17, 2013, 02:03:11 pm
You can use the PPS pin of GPS to get within nanoseconds absolute accuracy.  Older GPS to within milliseconds.  If the temperature is the same at both units, an Arduino Uno can be calibrated in software to drift 1 PPM.  No extra hardware is needed.  I did this with PPS pin of GPS, but then you don't need GPS anymore.
69  Using Arduino / Motors, Mechanics, and Power / Re: Auto Pilot for Tiny Yacht on: November 13, 2013, 10:03:06 pm
No comments?  I guess we're all in agreement then!  :-)
70  Using Arduino / Audio / Re: How to play Raw audio? on: November 13, 2013, 01:42:28 pm
I'm doing it like in the example I linked above.  So I need them.  What does need them mean?  Just specify them in the HTML5 code like above?  What if the wav file is coming from another host?  How does it send the  Content-type headers?
71  Using Arduino / Audio / Re: How to play Raw audio? on: November 13, 2013, 12:45:10 pm
I plan on doing it like this:
http://www.w3schools.com/html/html5_audio.asp
Content-type headers are not needed?

I know I don't have to use the Electric Imp.
I want to use the Imp, for another related project.
Can I serve the audio file from the Agent to my HTML5 webpage above?
72  Using Arduino / Audio / Re: How to play Raw audio? on: November 13, 2013, 09:55:26 am
@Chris- These are great projects!  But I want to record from Uno, and play on iPhone.
73  Using Arduino / Audio / Re: How to play Raw audio? on: November 12, 2013, 09:22:16 pm
Great advice.  You're the most knowledgeable on this topic so far.  How about Content-type headers?  Are they determined by the file extension automatically?  Are they only needed in the HTML5 code?  Are they an issue anywhere in this project using HTML5 (not Flash player)?

The most difficult question of all:
Can I use an Electric Imp Agent to directly serve the file to the HTML5 page?  I have sent the contents of a file this way before including the WAV headers.  The path is binary clean so I don't have to BASE64 encode it.
74  Using Arduino / Audio / Re: How to play Raw audio? on: November 12, 2013, 06:47:44 pm
I believe I only need one line of PHP:
file_put_contents('test.WAV', file_get_contents('php://input'));
75  Using Arduino / Audio / Re: How to play Raw audio? on: November 12, 2013, 05:24:33 pm
Read it again SirNick.  Fixed length files!  That's a grand idea!  Then I can start streaming with the constant WAV header.  Since I already know the length I don't have to go back to fix it.  No random access or CGI needed.  All the processing is done on the microcontroller.  I like Simple.  Much less RAM needed.
Pages: 1 ... 3 4 [5] 6 7 ... 93