Search found 294 matches

by DanV
Sun Feb 18, 2018 8:35 am
Forum: Arduino
Topic: Random Generated Numbers as Password
Replies: 5
Views: 51

Re: Random Generated Numbers as Password

I could be wrong, but don't you need to define the character array one element longer than you plan to use, to allow for a terminating null character?

char tempPass[5];
by DanV
Sat Feb 17, 2018 10:05 am
Forum: Projects
Topic: Luminescence sensor
Replies: 1
Views: 36

Re: Luminescence sensor

Read this article: http://www.omniray.fi/userData/omniray/docs/EMX-UVX-Handbook.pdf Look for detectors on Mouser https://www.mouser.com/Optoelectronics/Optical-Detectors-and-Sensors/_/N-6jju9 Maybe optical filter from Emunds Optics https://www.edmundoptics.com/optics/optical-filters/longpass-edge-fi...
by DanV
Fri Feb 16, 2018 1:58 pm
Forum: Projects
Topic: Load cell
Replies: 1
Views: 33

Re: Load cell

Simple code for this: if ( Force > PeakForce ) { PeakForce = Force; } and, of course, you will need some code to examine the pushbutton and react to it <Well, I was going to use code tags but the most recent change in the forum neither recognizes them nor does the full editor have any formatting cod...
by DanV
Fri Feb 16, 2018 7:53 am
Forum: Projects
Topic: Receiving strings from a smart motor
Replies: 1
Views: 32

Re: Receiving strings from a smart motor

Have you matched the Baud rate and other parameters with the Moog smart motor?
Default for the LED is 9600 N-8-1
by DanV
Wed Feb 07, 2018 3:43 pm
Forum: Projects
Topic: Motors won't shut off after 6 seconds
Replies: 4
Views: 111

Re: Motors won't shut off after 6 seconds

See, if you want to resolve millis() it can't be done inside setup(). setup() runs once and only once. if you put this code inside void loop() it should work because loop() gets called over and over by the system. if(currentMillis-previousMillis1>=interval_A);{ // This makes both motors previousMill...
by DanV
Tue Feb 06, 2018 1:46 pm
Forum: Projects
Topic: What are these connectors called?
Replies: 4
Views: 105

Re: What are these connectors called?

They are often referred to as quick disconnects. you crimp them onto the end of a wire (usually). Or solder them on. They are available in 3/16" and 1/4" McMaster Carr has them in a variety of insulated barrel, fully insulated, etc. https://www.mcmaster.com/#electrical-connectors/=1bgfb4e look under...
by DanV
Sat Feb 03, 2018 11:47 am
Forum: Arduino
Topic: Testing if a 230v AC circuit is closed
Replies: 5
Views: 73

Re: Testing if a 230v AC circuit is closed

Get a mechanical relay and put it in parallel with the machine's electronics (downstream of the switch).
Mouser and Digikey both have 230 VAC coil style relays.
by DanV
Fri Feb 02, 2018 10:28 am
Forum: Arduino
Topic: How to Connect an Output Value to an Output PIN
Replies: 2
Views: 55

Re: How to Connect an Output Value to an Output PIN

Please use Code Tags (from the Full Editor) around your code so it will read properly. You are using two blocking methods in you code that will cause problems. - while() will remain in that while loop until conditions are satisfied - no other code will run until it exits the loop. - pulsein() will w...
by DanV
Thu Feb 01, 2018 9:56 am
Forum: Arduino
Topic: Trying To Measure Impact Force?
Replies: 6
Views: 96

Re: Trying To Measure Impact Force?

The Arduino reference for analogread() function says "It takes about 100 microseconds (0.0001 s) to read an analog input, so the maximum reading rate is about 10,000 times a second" Instead of delay() function use delaymicroseconds() function. of course, using serialprintln() can slow the entire thi...
by DanV
Mon Jan 15, 2018 9:10 am
Forum: Arduino
Topic: How to save a float variable to the eeprom
Replies: 20
Views: 572

Re: How to save a float variable to the eeprom

You got some balls coming here for advice / help and then disrespecting the one person offering advice. You do know that this is a forum and not Sparkfun tech support, right? Seriously, @jremington is a support volunteer because he achieved enough posts for the moderators to assign that monker - you...
by DanV
Sat Jan 13, 2018 6:43 am
Forum: Projects
Topic: A quest!? #QuestBoard help plz
Replies: 7
Views: 171

Re: A quest!? #QuestBoard help plz

Your code has a 500 millisecond delay if you are detecting a button press and turn on the LED and play the track. If you are not detecting a button press, then you are having a 2000 millisecond delay - every pass through the loop - for each button. the delay() function is a blocking function - the p...
by DanV
Fri Jan 05, 2018 6:48 am
Forum: Projects
Topic: Soldering tab-style connectors with holes
Replies: 4
Views: 156

Re: Soldering tab-style connectors with holes

Sorry, I didn't express the need for mechanical connection before soldering, but, it's absolutely true.
Wire through the hole, then bend the wire over, then solder.
Thanks, @theropod for pointing that out.
by DanV
Thu Jan 04, 2018 2:34 pm
Forum: Projects
Topic: Soldering tab-style connectors with holes
Replies: 4
Views: 156

Re: Soldering tab-style connectors with holes

Yes, wire through the hole but don't just glob the solder on.
Clean the tip of your iron, tin it, heat the joint, then feed in a little solder.
It needs to be a proper solder job or you'll have issues.