Go to advanced search

by Idahowalker
Sat May 16, 2020 12:41 pm
Forum: Java
Topic: Running multithreaded application on RPi
Replies: 3
Views: 208

Re: Running multithreaded application on RPi

I have multi-threaded and multi-processes, using Thonny and Python. Perhaps its the code that is the issue? I don't know?

What programming language did you use to multi thread?

Post the code in code tags?

Perhaps a subject better suited for the programming section?
by Idahowalker
Fri May 15, 2020 3:46 pm
Forum: Automation, sensing and robotics
Topic: Automated Garden Sprinkler System
Replies: 56
Views: 1573

Re: Automated Garden Sprinkler System

Curious to see if the loop has really kicked out or something else.
Try a few print statements

Code: Select all

while True:
    print( "I be doing the loop!" )
    stime = time.time()
by Idahowalker
Fri May 15, 2020 1:58 pm
Forum: Beginners
Topic: Connecting MQ-2 sensor module to the Rapsberry Pi Model 3B+
Replies: 4
Views: 186

Re: Connecting MQ-2 sensor module to the Rapsberry Pi Model 3B+

The minimum working voltage for the MQ2 Grove Gas Sensor module is 4.9 volts https://wiki.seeedstudio.com/Grove-Gas_Sensor-MQ2/ . That link has instructions on using the Grove MQ2 gas sensor with the RPi. In order to get the gas sensor to work, with the RPi, you'll need the base-hat that has a onboa...
by Idahowalker
Fri May 15, 2020 1:38 pm
Forum: Automation, sensing and robotics
Topic: Controlling multiple (maybe 100) stepper motors
Replies: 40
Views: 1294

Re: Controlling multiple (maybe 100) stepper motors

Using an Array of ESP32's, 1 ESP32 to 10 motors and the RPi acting as a MQTT message broker, and, say Python, on the RPi to send control messages via the MQTT broker the whole thing can be done wireless. With the ESP's spending most of their time listening for incoming, the response should be quite ...
by Idahowalker
Thu May 14, 2020 3:00 pm
Forum: Python
Topic: Thonny packages?
Replies: 3
Views: 189

Re: Thonny packages?

Does " New packages will also be installed into this directory" mean "I must install" or "my attempt to install elsewhere will put it there, anyway?" Are alternative means important for me at this stage? Thonny will install the packages and plugins where Thonny knows how to get to them. Putting the...
by Idahowalker
Thu May 14, 2020 2:55 pm
Forum: Beginners
Topic: Old Raspberries...
Replies: 15
Views: 662

Re: Old Raspberries...

I have a RPi3b that I let run as a community service by running a few BOINC https://boinc.berkeley.edu/ thingies.
by Idahowalker
Thu May 14, 2020 12:15 am
Forum: Beginners
Topic: Controlling Voltage
Replies: 17
Views: 688

Re: Controlling Voltage

One can use PWM to control a mosfet to gate power, much like a switching regulator.

One can use a digipot to control a mosfet to gate power, much like a switching regulator.

One will not get rail to rail voltage output.
by Idahowalker
Wed May 13, 2020 9:16 pm
Forum: Troubleshooting
Topic: Weather station Error 403
Replies: 3
Views: 90

Re: Weather station Error 403

I have the same problem - I have updated my pi with the latest code and still get this error :/ Do you have any other suggestions? /Thomas You may need to allow remote dB access. I have a thing that sends data from RPi to a web sites dB. The ip address, the RPi uses had to be cleared for remote dB ...
by Idahowalker
Wed May 13, 2020 9:06 pm
Forum: Beginners
Topic: GPIO Pins controlling software
Replies: 3
Views: 126

Re: GPIO Pins controlling software

An idea for your consideration, a program able to display info on your web site and take info from your web site and have that info sent to the RPi that operates the GPIO pins. My setup: ESP32 ->local MQTT Broker->dB on web site->page page->dB on web site->MQTT Broker->ESP32 I have an ESP32 taking m...
by Idahowalker
Wed Apr 10, 2019 11:36 am
Forum: Automation, sensing and robotics
Topic: Car Digital Dashboard
Replies: 2
Views: 793

Re: Car Digital Dashboard

Hi, I am rebuilding an old landrover defender 90 it has no onboard computers or digital sensors. I am planning to use my raspberry pi as a dashboard but I didn't really know how to go about making one or what software/ hardware I would need. I am hoping someone would be able to give me some pointer...
by Idahowalker
Thu Mar 21, 2019 9:06 pm
Forum: Python
Topic: running two functions simultaneously
Replies: 16
Views: 3554

Re: running two functions simultaneously

Python multiprocessing is now very easy to use. I used that in a practical way to ping the local subnet to discover all hosts: https://github.com/mikerr/Pingu Relevent part code is: def ping: .... hosts = [] for i in range(255): hosts.append("192.168.0." + str(i)) pool = ThreadPool(100) results = p...
by Idahowalker
Fri Mar 15, 2019 12:48 am
Forum: Beginners
Topic: Using GPIO for data pass through
Replies: 5
Views: 429

Re: Using GPIO for data pass through

Something along the lines of a CD4066, might even use two or three to make a switch matrix controlled by the RPi.
by Idahowalker
Wed Mar 13, 2019 7:23 pm
Forum: Beginners
Topic: Best way to splice multiple wires/components into a single circuit
Replies: 11
Views: 1025

Re: Best way to splice multiple wires/components into a single circuit

A wiring block like this would work well:

https://smile.amazon.com/Position-Termi ... ay&sr=8-17, look neat and would be a good option.
by Idahowalker
Wed Mar 13, 2019 6:19 pm
Forum: Beginners
Topic: Best way to splice multiple wires/components into a single circuit
Replies: 11
Views: 1025

Re: Best way to splice multiple wires/components into a single circuit

Do you have a schematic?

Have you bought several proto boards and tried different wiring connection schemes?

Can you solder and do crimp connections?

Are your wires solid or stranded, those connectors only work with solid wire?
by Idahowalker
Sun Mar 10, 2019 3:51 pm
Forum: Automation, sensing and robotics
Topic: Ultrasonic sensor readings become unstable
Replies: 7
Views: 829

Re: Ultrasonic sensor readings become unstable

Is the LAN cable shielded? Try grounding the shield at only the Pi end to turn the shield into a cap that can absorb spurious signals. If the LAN cable is not shielded then try wrapping a small wire around the outside of the LAN cable. You would wind the wire in tight coils at each end and towards t...
by Idahowalker
Sun Mar 10, 2019 3:37 pm
Forum: Python
Topic: running two functions simultaneously
Replies: 16
Views: 3554

Re: running two functions simultaneously

Entering "python multiprocessing" will bring you closer to running two things, on the Pi at the 'same' time. The Python IDLE will NOT do multiprocessing, as of the last time I tried. Use Thonny for multiprocessing. You'll also need to use queues if passing info from one processor to the next. Thread...
by Idahowalker
Tue Mar 05, 2019 2:04 pm
Forum: Automation, sensing and robotics
Topic: Ultrasonic sensor readings become unstable
Replies: 7
Views: 829

Re: Ultrasonic sensor readings become unstable

If you could, use 2 ultrasonic sensors and compare readings.
by Idahowalker
Tue Feb 26, 2019 2:48 am
Forum: Automation, sensing and robotics
Topic: Raspberry pi3 with arduino like slave to read 5 analogic signals
Replies: 6
Views: 632

Re: Raspberry pi3 with arduino like slave to read 5 analogic signals

Serial.print(analogRead(A1));
Serial.print ( ",");
Serial.print(analogRead(A2));
Serial.print ( ",");
Serial.print(analogRead(A3));
Serial.print ( ",");
Serial.println(analogRead(A4));
by Idahowalker
Sat Feb 23, 2019 9:06 am
Forum: Automation, sensing and robotics
Topic: Ultrasound sensor alternatives?
Replies: 11
Views: 1869

Re: Ultrasound sensor alternatives?

I use a TFMini to scan an area, for another purpose, to obtain a rather good image of an area. I make 12 scans per degree and scan +/- 5 degrees off 90, the scan is done in both directions, takes .072 seconds per scan, I disregard any measurement over 600cm, and I am able to discern, on screen, a 2 ...
by Idahowalker
Sat Feb 23, 2019 8:39 am
Forum: Advanced users
Topic: Advice on project components...
Replies: 14
Views: 1348

Re: Advice on project components...

Those relays will require a 5 volt input on the VOC pin, a circuit common input on the GND pin and will take a 3.3 v input, low signal, to enable on the INX pins. The low in will cause the LEDS to illuminate and a click will be heard as the relays energize. Those relays have optically isolated input...
by Idahowalker
Sun Feb 17, 2019 12:24 am
Forum: Python
Topic: Need help understanding this code
Replies: 2
Views: 295

Re: Need help understanding this code

class EvenOnly(list): def append(self, integer): if not isinstance(integer, int): raise TypeError("Only integers can be added") if integer % 2: raise ValueError("Only even numbers can be added") super().append(integer) e = EvenOnly() e.append(2) I'm trying to understand this code and what I don't u...
by Idahowalker
Sat Feb 16, 2019 4:48 pm
Forum: Beginners
Topic: Raspberry 3 B needs a cooling system?
Replies: 21
Views: 11790

Re: Raspberry 3 B needs a cooling system?

I'd use the heatsinks. For the fan, find the fan location on the underside of the case top. Put a dab of hot glue at each spot the fan will mount to, put the fan on top of the cooled hot glue and then hot glue the fan in place. The layer of hot glue will give a vibration damper. I run my RPi at 70% ...
by Idahowalker
Sat Feb 16, 2019 3:22 pm
Forum: Troubleshooting
Topic: The Big (little) Yellow Bolt of Doom
Replies: 21
Views: 1645

Re: The Big (little) Yellow Bolt of Doom

First off thank you to Imperf3kt. I am here to learn what i did wrong or how i screwed something up not where i should spend my money so if you have advice i will always listen, it was helpful. Next another thanks to Ernst and Idahowalker, i have never heard that about breadboards before and it ult...
by Idahowalker
Fri Feb 15, 2019 1:37 pm
Forum: Python
Topic: Need help modifying a Gmail message retrieval script
Replies: 16
Views: 1402

Re: Need help modifying a Gmail message retrieval script

gmail accounts are free. I made an account just for my RPi. All the mail received by that account is just for the RPi. After making the account, send an email from that account to your main account and reply. Seems gmail accounts like a 2 way communication. Yeah, that's what I did as well. Did you ...

Go to advanced search