Go to advanced search

by Idahowalker
Mon Nov 12, 2018 12:08 pm
Forum: Beginners
Topic: Antenna setup for aircraft signal advice
Replies: 23
Views: 1771

Re: Antenna setup for aircraft signal advice

I was going to add that instead of cutting the braided shield spread it out to form a ground plane. I saw the pie tine suggestion and thought 'Oi! great idea' to split the braided shield into 4 sections and spread unto the pie tin or other piece of metal; you might end u[p soldering the braid to the...
by Idahowalker
Mon Nov 12, 2018 12:27 am
Forum: Beginners
Topic: Antenna setup for aircraft signal advice
Replies: 23
Views: 1771

Re: Antenna setup for aircraft signal advice

You can use the cable to the dish as a dipole antenna. Determine the full. 1/2 an 1/4 length of wavelength of the frequency you'll be receiving. measure and mark the cable back from the end of either the full, 1/4 or 1/4 length. Carefully peel back the outer sheath to the marked distance and pull th...
by Idahowalker
Thu Nov 08, 2018 4:33 pm
Forum: Python
Topic: Isolate part of Python Output
Replies: 17
Views: 1100

Re: Isolate part of Python Output

I went to gmail, made a gmail account, for my RPi, and use Python to log into the account and send email through. Thanks There are many examples of how to send an email with python. What I found is that, after going through many, examples only parts from here and there worked. So this is what I cam...
by Idahowalker
Thu Nov 08, 2018 2:18 am
Forum: Python
Topic: Isolate part of Python Output
Replies: 17
Views: 1100

Re: Isolate part of Python Output

I went to gmail, made a gmail account, for my RPi, and use Python to log into the account and send email through.
by Idahowalker
Tue Nov 06, 2018 5:34 pm
Forum: Beginners
Topic: How to send arduino sensor value to MySQL??
Replies: 3
Views: 895

Re: How to send arduino sensor value to MySQL??

When I send sensor/servo/other data between the RPi and the Arduino, I use a data format. From the Arduino I make a data line of comma delimited values with the first data column being the data descriptor and the other columns being the actual data. For instance the Arduino has a BMP085 sensor sendi...
by Idahowalker
Tue Nov 06, 2018 1:17 pm
Forum: Python
Topic: Isolate part of Python Output
Replies: 17
Views: 1100

Re: Isolate part of Python Output

Inside the status variable will be a ':'. The ':' and all the words to the left are not needed, so I'd split on the ':' with something like status = status.split( ":") which will give most of the answer you are looking for. Next, status[1] will contain the info you are looking for. Status[1] will co...
by Idahowalker
Sun Nov 04, 2018 2:05 pm
Forum: Python
Topic: Need help integrating pulse inputs.
Replies: 12
Views: 635

Re: Need help integrating pulse inputs.

Well, you could create a variable, global, and add one to it each time the callback function triggers After adding one to the variable check the count and act upon the count. Using your favorite search engine and searching for 'python increasing variable count' should give you many examples of code ...
by Idahowalker
Sun Nov 04, 2018 3:01 am
Forum: Python
Topic: Need help integrating pulse inputs.
Replies: 12
Views: 635

Re: Need help integrating pulse inputs.

Thanks for the response. I do know how to use the code feature I gather I will need to read the input over a period of 6 seconds starting from detect of first rising. then output the sequence to the callback function. Then I can use if this then that to perform what I want. I just can't figure out ...
by Idahowalker
Sun Nov 04, 2018 2:36 am
Forum: Python
Topic: Need help integrating pulse inputs.
Replies: 12
Views: 635

Re: Need help integrating pulse inputs.

Thanks for the response. I do know how to use the code feature The issue that I have is I don't know how to take the input time sequence and have the inputs as different variable 500ms high 500ms low = Alarm Disarmed 500ms high 500ms low 500ms high 500ms low = Armed 1s high 1s low continuously for ...
by Idahowalker
Sun Nov 04, 2018 2:06 am
Forum: Python
Topic: controlling a servo.
Replies: 21
Views: 1275

Re: Basic question

If GPIO.cleanup is not working try, software, disconnecting from the servo torque engine, such as setting the oTorque = None and then sending a 0 to the pin the servo is connected to, before exiting.
by Idahowalker
Sat Nov 03, 2018 9:40 pm
Forum: Python
Topic: Need help integrating pulse inputs.
Replies: 12
Views: 635

Re: Need help integrating pulse inputs.

Consider the opening and closing of the relay, on the relay connections, button presses. So the first thing to do is write code to detect the opening and closing of the relay 'button presses.' You can have your code print a message each time the relay contacts open or close. After you figure out how...
by Idahowalker
Sat Nov 03, 2018 7:10 pm
Forum: Python
Topic: Need help integrating pulse inputs.
Replies: 12
Views: 635

Re: Need help integrating pulse inputs.

Using your favorite internet search engine try searching for 'GPIO callback.'
by Idahowalker
Sat Nov 03, 2018 5:34 pm
Forum: Troubleshooting
Topic: [SOLVED] gpiozero Button - Runtime Error - edge detection
Replies: 19
Views: 2998

Re: gpiozero Button - Runtime Error - edge detection

I am able to reproduce the issue of GPIO edge detection with Thonny. I noticed after starting Thonny that if the mouse cursor, when moved to certain positions, displays the arrow and hour glass, and I try to start my program, I will get the edge detection error. After the first edge detection error ...
by Idahowalker
Sat Nov 03, 2018 5:15 pm
Forum: Beginners
Topic: GPIO Pin Voltage Amplification
Replies: 3
Views: 334

Re: GPIO Pin Voltage Amplification

The way I am seeing the problem is that there is 3.3V and 0V to use as an input and the 3.3 volts can be varied with an off on state (frequency). The faster the frequency of the output the longer the output voltage to drive the motors can be held high the faster the motors will rotate. What do you t...
by Idahowalker
Fri Nov 02, 2018 3:59 pm
Forum: Python
Topic: pyserial read and write simultaneously
Replies: 5
Views: 2147

Re: pyserial read and write simultaneously

Idahowalker, A thread is not a 'at the same time' kind of thing as there is time slicing going on. Might be. Two threads can be running on two cores, if you have them, and doing thins at the same time. Either way UART hardware can be transmitting a byte and receiving a byte at the same time. Yes, m...
by Idahowalker
Fri Nov 02, 2018 11:23 am
Forum: Python
Topic: pyserial read and write simultaneously
Replies: 5
Views: 2147

Re: pyserial read and write simultaneously

Just hook the Tx to Rx send your message and in the same code read the message. The serial port receive has a buffer that will hold the data sent to it till read or flushed. No need to thread just to check the loop back. A thread is not a 'at the same time' kind of thing as there is time slicing goi...
by Idahowalker
Wed Oct 31, 2018 1:04 pm
Forum: Python
Topic: Q: How to use multiple GPIO-interrups? - Multi-Threading?
Replies: 5
Views: 791

Re: Q: How to use multiple GPIO-interrups? - Multi-Threading?

If all the callbacks use the same functions you can name the same callback for all GPIO pins. If the callbacks use different functions the callback has a input value such as: def fmyCallBack( iChannel ): iChannel can be used to differentiate the calling GPIO pin; such as: if ( iChannel == X1 ): DoTh...
by Idahowalker
Tue Oct 30, 2018 11:59 pm
Forum: Beginners
Topic: Detect current on Raspberry pi
Replies: 88
Views: 8345

Re: Detect current on Raspberry pi

What are you referring as the intercom switch ? The push to talk switch. I like you idea of powering the VOX with the intercom to avoid false triggers. I could wire the VOX directly to the speaker right ? Though I'm not sure that 3.5V would be enough to power it on. Devices of that type are working...
by Idahowalker
Tue Oct 30, 2018 4:10 pm
Forum: Beginners
Topic: Detect current on Raspberry pi
Replies: 88
Views: 8345

Re: Detect current on Raspberry pi

If you mean 'hit' by accidentally enabling the intercom switch, but you did not speak, nothing. If you accidentally hit the intercom switch and spoke, the same thing would happen if the device was not present. Which gives me the idea that the power for the device could be supplied by the intercom sw...
by Idahowalker
Tue Oct 30, 2018 3:21 pm
Forum: Beginners
Topic: Detect current on Raspberry pi
Replies: 88
Views: 8345

Re: Detect current on Raspberry pi

A VOX should work to do the thing. Put the VOX input next to the speaker, adjust the sensivity, and send the groomed binary signal to the RPi. No need to cut wires. You can make a VOX, just do a search using your favorite search engine for "audio activated switches circuit' and build one to suit you...
by Idahowalker
Tue Oct 30, 2018 12:28 pm
Forum: Python
Topic: Q: How to use multiple GPIO-interrups? - Multi-Threading?
Replies: 5
Views: 791

Re: Q: How to use multiple GPIO-interrups? - Multi-Threading?

Using threading events I create an event object: oTrigger32K = threading.Event() This is all the code in the callback: def f32K( iChannel ): #### oTrigger32K.set() #### return; I create a thread that operates in a loop: def fHandlePPS_Triggers(): while (not bIsGPIO_CleanUp): #work is done in this re...
by Idahowalker
Tue Oct 30, 2018 12:19 pm
Forum: Python
Topic: Q: How to use multiple GPIO-interrups? - Multi-Threading?
Replies: 5
Views: 791

Re: Q: How to use multiple GPIO-interrups? - Multi-Threading?

Hi together, This is the Situation: I have 15 machines with a working clock rate of ca. 740ms. Each machine has a relay which closes per tic for 200ms. Now i want to count how many times each machine was triggered. Therefor, i´m using a Raspi 3 B+ and connected each machine-relay to a seperate GPIO...
by Idahowalker
Tue Oct 30, 2018 11:21 am
Forum: Beginners
Topic: Monitoring manifold - multiple temperature sensors
Replies: 2
Views: 582

Re: Monitoring manifold - multiple temperature sensors

Sometimes you may need to start with this: https://tse4.mm.bing.net/th?id=OIP.tlOwHZEUhJT3WR_l_XAPIQHaE8&pid=Api&w=3831&h=2554&rs=1&p=0 to get started and then move onto to this: https://tse1.mm.bing.net/th?id=OIP.nnAPo-aRmrIh0YDCtWBnHQHaHa&pid=Api&w=1200&h=1200&rs=1&p=0 when finished. You may also ...
by Idahowalker
Mon Oct 29, 2018 12:34 am
Forum: Automation, sensing and robotics
Topic: Powerful servo motor ?
Replies: 9
Views: 2424

Re: Powerful servo motor ?

i_like_raspberry wrote:
Sun Oct 28, 2018 9:38 pm
Thank you for the tip. I was quite surprised that 5V isn't enough to power the digital servo. It requires between 6 and 7V. At least that's what it says on the package.
I run those servos off a 8 volt power supply.

Go to advanced search