Go to advanced search

by Idahowalker
Sun May 20, 2018 8:18 pm
Forum: Automation, sensing and robotics
Topic: LIS3DH accelerometer reading jumps problem
Replies: 11
Views: 220

Re: LIS3DH accelerometer reading jumps problem

Most likly going to the ada fruit web site will be helpful where you can find stuff like this: Re: LIS3DH Accelerometer by adafruit_support_bill on Mon Nov 27, 2017 1:17 pm A couple of things: It is normal to have some noise. You are also using the 2G setting which is quite sensitive. That can pick ...
by Idahowalker
Sun May 20, 2018 8:07 pm
Forum: Automation, sensing and robotics
Topic: LIS3DH accelerometer reading jumps problem
Replies: 11
Views: 220

Re: LIS3DH accelerometer reading jumps problem

Is the acceleration random or of a specific period? Is there a calibration routine for you to run on the accelerometer?

Have you asked the source of your accelerometer about this issue to find out what they have to say?

My own interest, why just an accelerometer?
by Idahowalker
Sun May 20, 2018 5:34 pm
Forum: Automation, sensing and robotics
Topic: LIS3DH accelerometer reading jumps problem
Replies: 11
Views: 220

Re: LIS3DH accelerometer reading jumps problem

Have you tried putting the unit on a different surface?

You are not getting a ~1g acceleration on the z-axis? I ask because I have a MPU-6050 mounted on an X-Y gyro stabilized platform and I get a ~1g acceleration on the Z-axis from the earths rotation.
by Idahowalker
Sat May 19, 2018 10:58 pm
Forum: Troubleshooting
Topic: RPM Speed Measurement code:
Replies: 6
Views: 153

Re: RPM Speed Measurement code:

muqtar2 wrote:
Sat May 19, 2018 6:18 pm
Can you show me an example of how it can be done a boolean variable, stop counting, and interval 5 seconds, average.?
By typing into your favorite search engine the following words 'python measuring rpm' you will begin on a journey many examples.
by Idahowalker
Sat May 19, 2018 5:06 pm
Forum: Troubleshooting
Topic: RPM Speed Measurement code:
Replies: 6
Views: 153

Re: RPM Speed Measurement code:

Perhaps a bit of a rethink might be in order? Write a threaded interrupt based routine to detect and count the pulses. Place the count in a global variable. Have the calling code (main code), loop based upon some time count, and, upon an an interval, say 5 seconds, average, cause the threaded routin...
by Idahowalker
Thu May 17, 2018 6:40 pm
Forum: Troubleshooting
Topic: All pins fried, don't know why
Replies: 24
Views: 543

Re: All pins fried, don't know why

This is what I planned on doing, however I was under the impression that wiring rpi tx -> arduino rx directly would not cause any damage to either of them (at least in the short-term), am I wrong about that? Yes. For a very short time 'things' were probably OK but, for things working at or near the...
by Idahowalker
Thu May 17, 2018 6:29 pm
Forum: Beginners
Topic: object detection
Replies: 3
Views: 104

Re: object detection

I suggest you start small. Say, energizing an LED using a program of your choice and using the proper components, so you don't let the smoke out of the RPi. Then moving onto learning about the various sensors and how to program for them, and, eventually, moving into video image capture and discrimin...
by Idahowalker
Tue May 15, 2018 8:48 pm
Forum: Troubleshooting
Topic: Power problem
Replies: 6
Views: 185

Re: Power problem

My guess, you are grounding the power out when you attach the ground on the breadboard. You got a bad connection, you are not using the bread board correctly, or you got a bad component. Can you remove all the components and just put power and ground on to the breadboard without the power shutting o...
by Idahowalker
Sun May 13, 2018 2:19 pm
Forum: Beginners
Topic: Vibration sensor
Replies: 3
Views: 80

Re: Vibration sensor

Here is the MPU 6050 code that I use: ''' Read Gyro and Accelerometer by Interfacing Raspberry Pi with MPU6050 using Python http://www.electronicwings.com **************************************************************** mpu6050 rpi3 scl to RPiJ8-5 sda to RPiI8-3 GND to GND VCC to 3.3 volts check if ...
by Idahowalker
Sun May 13, 2018 2:10 pm
Forum: Beginners
Topic: Vibration sensor
Replies: 3
Views: 80

Re: Vibration sensor

There are several ways to go with detecting vibrations. Each way has their plus and minuses. I would use differing kinds of vibration sensors. I'd use one a vibration sensor to detect coarse vibrations and use a 2nd more sensitive vibration sensor to sense/record the vibrations. It might take a few ...
by Idahowalker
Sun May 13, 2018 1:25 pm
Forum: Python
Topic: Is it possible to use an interrupt to detect a key press
Replies: 15
Views: 369

Re: Is it possible to use an interrupt to detect a key press

I have successfully used interrupts to detect changes in GPIO pins using: GPIO.add_event_detect I would like to use interrupts to detect any of the four cursor keys (the up and down arrows and left and right arrows) and use that in order to move a pan-tilt hat in the relevant direction. Could someo...
by Idahowalker
Sun May 13, 2018 1:11 pm
Forum: Other projects
Topic: An X Y platform motor contemplation
Replies: 0
Views: 64

An X Y platform motor contemplation

Several weeks ago I added an MPU 6050 to my project. I calibrated the 6050 with averaging and drift rate calibrations. I put the unit on a X-Y (2 DOF) platform with a bubble level and have been somewhat happy with observing the leveling results. Currently, I am using DC servos to keep the platform l...
by Idahowalker
Fri May 11, 2018 7:26 pm
Forum: Python
Topic: Multiple UART devices
Replies: 2
Views: 119

Re: Multiple UART devices

One possible way is to use a multiplexer for the Rx/Tx. You can either buy or build a multiplexer; enter "multiplexer" in the Amazon search window for some sources of already built multiplexers.

'Sounds' like a fun project.
by Idahowalker
Fri May 04, 2018 2:22 pm
Forum: Troubleshooting
Topic: GPIO inputs
Replies: 6
Views: 196

Re: GPIO inputs

Okay I stated that wrong in code I am actually using a CJRSLRB Photosensitive Sensor that does put out a digital output sorry about that. Thanks Cool. Put a meter onto the o/p of the CJRSLRB to see if, as the motor drives, the o/p of the CJRSLRB does not change in relation to the motor failing to c...
by Idahowalker
Fri May 04, 2018 12:16 pm
Forum: Troubleshooting
Topic: GPIO inputs
Replies: 6
Views: 196

Re: GPIO inputs

You are correct, the circuit and code does not make sense. Especially this part, GPIO.setup(7,GPIO.IN) #LDR (Light Dependent Resistor) A LDR outputs a analog voltage in relation to a light source. A GPIO pin is a digital circuit. To connect a LDR to a GPIO pin and expect reliable operations, without...
by Idahowalker
Thu May 03, 2018 12:42 am
Forum: Python
Topic: Turning a fan on and off via Python and GPIO
Replies: 6
Views: 218

Re: Turning a fan on and off via Python and GPIO

From the code that you posted, when the code passes by the if else statement, the module has completed its task and exits. You could use a sleep and loop statement to check on the temp and adjust fan operation. Now this is just me, but I would not sink or source current from a 3.3V GPIO pin to 5V, d...
by Idahowalker
Tue May 01, 2018 8:12 pm
Forum: Automation, sensing and robotics
Topic: Science automation help
Replies: 1
Views: 126

Re: Science automation help

I typed "electronically controlled air valve" into my favorite search engine and came up with quite a number of results. I, also, viewed images of numerous products.
by Idahowalker
Mon Apr 30, 2018 10:40 pm
Forum: Beginners
Topic: 5V 5A power supply, yay or nay?
Replies: 22
Views: 674

Re: 5V 5A power supply, yay or nay?

Yay. 5V 5A supply, Why not? Go look at the fuse rating of the outlet that 'you' plug your RPi power supply into. My RPi power supply is currently plugged into a AC outlet that can supply up to 20 amps and the power supply to the RPi works fine. Does the RPi power supply draw 20 amps, no; but it coul...
by Idahowalker
Mon Apr 30, 2018 6:32 pm
Forum: Python
Topic: Python error since 2 days
Replies: 4
Views: 164

Re: Python error since 2 days

When I was using a dht I would, on occasion, get a 0 or a null value. I wrote conditionals to test for 0 and None.

Such as process if (t != None) and (h != None)
by Idahowalker
Thu Apr 26, 2018 9:15 pm
Forum: Python
Topic: Python code only lets servos turn once
Replies: 10
Views: 313

Re: Python code only lets servos turn once

I understand that each pin can only be assigned 50 Hertz once. What confuses me is the part about why when I press key the servos move ONCE and that is it. They just make small sounds like they are trying to move but cant. That the servos are, after moving once, trying to drive, as per the They jus...
by Idahowalker
Thu Apr 26, 2018 12:50 pm
Forum: Other projects
Topic: Need ideas (is this the right place for this topic?)
Replies: 3
Views: 197

Re: Need ideas (is this the right place for this topic?)

This is a good place for ideas.

How about a self navigating hexapod unit that roams around the house looking for perturbations and when the hexapod unit find ones it alerts you.?
by Idahowalker
Thu Apr 26, 2018 12:46 pm
Forum: Automation, sensing and robotics
Topic: 9V or 12V?
Replies: 8
Views: 300

Re: 9V or 12V?

Thanks for your answer, and how do you do that? I'd find a 12V battery that can supply enough power for the needs of the project, then I'd enter into the Amazon find window the following "dc to dc voltage converter", look through the list, at the available options, looking for several units that wi...
by Idahowalker
Thu Apr 26, 2018 12:39 pm
Forum: Automation, sensing and robotics
Topic: 2 motos turning on it's own
Replies: 35
Views: 869

Re: 2 motos turning on it's own

Also, the GPIO pins have their own power on defaults.
by Idahowalker
Thu Apr 26, 2018 12:30 pm
Forum: Advanced users
Topic: Mean of 60 temperature sensors
Replies: 17
Views: 670

Re: Mean of 60 temperature sensors

Hi All, I want to maintain the temperature of three levels of my building (company), and they are quite large in area. I have planned to mount temperature sensors with some distance at different spots on my ceilings, making a total of around 50-60 sensors on each level. I plan to gather the tempera...

Go to advanced search