Search found 2107 matches

by jremington
Sat Feb 24, 2018 9:02 pm
Forum: Arduino
Topic: Convert Serial input to numeric keypad function
Replies: 3
Views: 37

Re: Convert Serial input to numeric keypad function

Perhaps the OP is just showing off the result of a great deal of hard work.
by jremington
Sat Feb 24, 2018 5:49 pm
Forum: SparkFun Product Questions
Topic: MPU-9250 9DOF sensor yaw troubles.
Replies: 2
Views: 16

Re: MPU-9250 9DOF sensor yaw troubles.

All magnetometers must be carefully calibrated to be useful for yaw measurements. For best IMU performance, the accelerometer should be calibrated too. An advantage of the BNO055 is that the calibration procedure is built in, but unless you override it, you have to go through the process every time ...
by jremington
Thu Feb 22, 2018 8:28 am
Forum: Arduino
Topic: Wiring many ir phototransistors to arduino
Replies: 14
Views: 155

Re: Wiring many ir phototransistors to arduino

Who can tell from a "Fritzing for complete idiots" diagram? Please post an image of a hand drawn schematic.
by jremington
Wed Feb 21, 2018 8:05 pm
Forum: Arduino
Topic: Wiring many ir phototransistors to arduino
Replies: 14
Views: 155

Re: Wiring many ir phototransistors to arduino

They will be receiving light. I want to detect whether the transistor is being touched. so on or off. Could this be problematic if encased in something, making ambient light already extremely dark? The exact design of the sensor will depend very strongly on the details of the environment, especiall...
by jremington
Mon Feb 19, 2018 9:31 am
Forum: SparkFun Product Questions
Topic: UV sensor
Replies: 1
Views: 75

Re: UV sensor

They are pretty different, as the data sheets show, but both report the intensity of UV light in a certain spectral range. Write code that reads the sensor and outputs values that make sense to you. To check if the code is "science based" you will need to calibrate the sensor. The easiest way to do ...
by jremington
Sun Feb 18, 2018 9:10 pm
Forum: New Product Ideas
Topic: Ultrasonic motors?
Replies: 4
Views: 161

Re: Ultrasonic motors?

Hydrostatic/pneumatic motors and cylinders come in all imaginable sizes and won't be going away, ever!
by jremington
Fri Feb 09, 2018 1:19 pm
Forum: Arduino
Topic: How can I change function with a pushbutton during a delay?
Replies: 7
Views: 118

Re: How can I change function with a pushbutton during a delay?

1: Ok, so if I write currentMillis = millis(); straigt above the if(currentMillis - prevMillisprog4 >= intervalprog4) it won't help? You can do that, but I don't see the point. currentMillis is not "current" 1 millisecond later. A state machine would be a much better approach to solving your proble...
by jremington
Fri Feb 09, 2018 8:59 am
Forum: Arduino
Topic: How can I change function with a pushbutton during a delay?
Replies: 7
Views: 118

Re: How can I change function with a pushbutton during a delay?

There are a couple of problems with the following line: if (currentMillis - prevMillisprog4 == intervalprog4) 1. You should almost always be testing the value of millis() (the current time), not the value of a variable named currentMillis, as it is valid for only 1 millisecond. 2. The difference bet...
by jremington
Thu Feb 08, 2018 6:52 pm
Forum: Arduino
Topic: How can I change function with a pushbutton during a delay?
Replies: 7
Views: 118

Re: How can I change function with a pushbutton during a delay?

So far I have 6 voids No, you have six functions . The keyword "void" before a function name signifies that the function does not return a value. To learn how to do things on a timed basis without using the function named delay(), carefully study the "blink without delay" example that comes with th...
by jremington
Wed Feb 07, 2018 6:30 pm
Forum: Projects
Topic: Motors won't shut off after 6 seconds
Replies: 4
Views: 119

Re: Motors won't shut off after 6 seconds

Use code tags when posting code. The body of an if statement executes only once (or not at all) regardless of where it is. So, the logic of, the construction of and the comments associated with the following lines of code are wrong. Also, there must not be a ";" between the if clause and the opening...
by jremington
Fri Feb 02, 2018 9:05 am
Forum: Arduino
Topic: Trying To Measure Impact Force?
Replies: 6
Views: 102

Re: Trying To Measure Impact Force?

FSRs are a poor choice to measure anything, as they are uncalibrated and highly nonlinear. Add to that the long time it takes the Arduino to measure a voltage and you can't expect much. High-g accelerometers were designed to do what you want. They were originally designed for impact measurement, in ...
by jremington
Wed Jan 31, 2018 8:30 am
Forum: Projects
Topic: Help on a Small Project
Replies: 3
Views: 95

Re: Help on a Small Project

Study other people's stepper code -- plenty of examples available, or use stepper motor libraries, like AccelStepper.
by jremington
Tue Jan 30, 2018 8:17 pm
Forum: Projects
Topic: Help on a Small Project
Replies: 3
Views: 95

Re: Help on a Small Project

how can I achieve the ability to say move to 50% brightness from 75% brightness? Your program has to "remember" how the motor shaft is positioned at all times, by summing up all movements from the starting position. Then, it calculates the new position (number of steps and direction to move) from t...
by jremington
Sat Jan 27, 2018 7:46 am
Forum: SparkFun Product Questions
Topic: Type 5 Radiation Sensor Question
Replies: 5
Views: 136

Re: Type 5 Radiation Sensor Question

Using the brass plates will affect measurements.. unless that was already taken into account by the manufacturer. The manufacturer has not calibrated this detector, or "taken into account" anything you might add to it. To measure the effect of adding the brass plates, get a suitable radiation sourc...
by jremington
Thu Jan 25, 2018 4:43 pm
Forum: SparkFun Product Questions
Topic: Type 5 Radiation Sensor Question
Replies: 5
Views: 136

Re: Type 5 Radiation Sensor Question

I don't know what data sheet you're looking at but I'm looking at the data sheet right now and the range for detection is between 5-1000 keV. Perhaps it's not 100% efficient at the higher energies but that doesn't matter for me. The same one you are, but you don't seem to understand it. Detection e...