Go to advanced search

by Idahowalker
Wed Nov 21, 2018 4:59 pm
Forum: Beginners
Topic: GPIO pulse in nanoseconds
Replies: 7
Views: 1428

Re: GPIO pulse in nanoseconds

Hey, I try to interact with a TLC5940 via C. I use Rapsbian as OS and I am not sure how I can realize something like pulse(int nanoseconds){ setPinOutHigh sleep(nanoseconds) setPinOutLow sleep(nanoseconds) } The timing diagram requires for example a period of at least 3ns for some signals. So is na...
by Idahowalker
Wed Nov 21, 2018 12:20 pm
Forum: Python
Topic: Detecting system crash (not clean shutdown) with python
Replies: 2
Views: 715

Re: Detecting system crash (not clean shutdown) with python

One of the library's I use to interface with a device, occasionally, produces an I/O error. Once the I/O error is produced the behavior of the device library is to crash and not recover. I have sub classed the device library and when the device library crashes the class object is set to None. On the...
by Idahowalker
Tue Nov 20, 2018 10:10 pm
Forum: Advanced users
Topic: Broken Gpio
Replies: 13
Views: 2572

Re: Broken Gpio

Did you have those relays directly powered by the RPI?
by Idahowalker
Tue Nov 20, 2018 6:20 pm
Forum: Python
Topic: Code for Non-invasive Current Probe 100A
Replies: 10
Views: 3598

Re: Code for Non-invasive Current Probe 100A

How about posting the code, in code tags, for us to look at? It would make answering questions about code a bit easier with a reference frame.
by Idahowalker
Mon Nov 19, 2018 3:59 pm
Forum: Python
Topic: multithreading with omxplayer
Replies: 2
Views: 771

Re: multithreading with omxplayer

Use Threading events. Inside each thread, at the start, you can place a threading event that waits until triggered. Thread 1 can be started and thread 1 runs into the threading event and waits. Thread 2 can be started and thread 2 runs into the threading event and waits. After both threads are creat...
by Idahowalker
Sun Nov 18, 2018 3:46 pm
Forum: Python
Topic: Accessing IO in new class
Replies: 18
Views: 1809

Re: Accessing IO in new class

I have classes, threads, and a multiprocess that uses the GPIO pins all with out giving error.

In the main code, I have a function that sets up the GPIO pins, states, and callbacks. This code, to setup GPIO, runs before any threading, class instantiations or, multiprocess are started. East-peasy.
by Idahowalker
Sun Nov 18, 2018 3:36 pm
Forum: Beginners
Topic: USB Serial ports on RPI 3
Replies: 14
Views: 2206

Re: USB Serial ports on RPI 3

The Arduino way.

Open up the Arduino IDE. Look at the ports available, close the Arduino IDE, plug in a Arduino, open the Arduino IDE, now you know which serial port the Arduino is on. Plug in Arduino, open new project, open port, now you know which port the 2nd Arduino is on.
by Idahowalker
Sat Nov 17, 2018 6:10 pm
Forum: Python
Topic: UpdateThonny
Replies: 8
Views: 1625

Re: UpdateThonny

Last night, using Synaptic, I got a Thonny update.
by Idahowalker
Tue Nov 13, 2018 10:49 pm
Forum: Python
Topic: building a recognition machine with rpi3
Replies: 60
Views: 7974

Re: building a recognition machine with rpi3

Have 'you' considered a optical flow sensor? I'm not going to point you to the sources but typing the proper characters into your favorite search engines can do the trick. Using a paper wrote by some professor on how a bumble bee sees, some Arduino users have been looking into how to use multiple op...
by Idahowalker
Mon Nov 12, 2018 6:31 pm
Forum: Beginners
Topic: Antenna setup for aircraft signal advice
Replies: 23
Views: 2246

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 th...
by Idahowalker
Mon Nov 12, 2018 12:08 pm
Forum: Beginners
Topic: Antenna setup for aircraft signal advice
Replies: 23
Views: 2246

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: 2246

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: 1506

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: 1506

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: 1546

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: 1506

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: 887

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: 887

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: 887

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: 1804

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: 887

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: 887

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: 4168

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: 557

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: 4365

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...

Go to advanced search