Go to advanced search

by Idahowalker
Fri Feb 15, 2019 12:22 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.
by Idahowalker
Fri Feb 15, 2019 12:17 pm
Forum: Troubleshooting
Topic: The Big (little) Yellow Bolt of Doom
Replies: 21
Views: 1643

Re: The Big (little) Yellow Bolt of Doom

I'm using noobs downloaded about a month ago and just updated and upgraded last night, and I havnt botherd to get an official power supply as yet mostly becouse I have a 6 inch power cord and a dc power supply running to it through a breadboard, if 3 amps over that short a distance wont give me suf...
by Idahowalker
Mon Feb 11, 2019 10:39 pm
Forum: Python
Topic: Continuous Servo - How to make it slow with high torque?
Replies: 2
Views: 355

Re: Continuous Servo - How to make it slow with high torque?

By using a full metal gear servo you can get increased torque capacity. Making the servo quiet. How are you powering the servo? I prefer to power the servo with its own supply. Say I have a 9V supply. The uController needs some voltage so I build a 5V power supply for the uController. The servo I us...
by Idahowalker
Mon Feb 11, 2019 2:27 am
Forum: Advanced users
Topic: Flashing MicroPython to ESP8266 using rPi - Testing if ubinascii.unhexlify exists ...
Replies: 21
Views: 2556

Re: Flashing MicroPython to ESP8266 using rPi - Testing if ubinascii.unhexlify exists ...

When I tried to use the RPi to interact with an ESP32, I found that, after a while, trying to figure out why it seemed to work but did not work, was that the ESP32 bin files were complied to use a Intel to ESP32 processor bin file. ESPRESSIF does not support the RPi Processor as, as was told by ESPR...
by Idahowalker
Sun Feb 10, 2019 9:56 pm
Forum: Python
Topic: What does "from . import *" mean.
Replies: 6
Views: 844

Re: What does "from . import *" mean.

Take the threading class it has several subclasses; such as thread, Queue, and a few others. If the threading class was imported all the subclasses are loaded but you may only want to use one of the subclasses, can shave off a bit of ram, or you want to use your own name to reference a sub class. So...
by Idahowalker
Sun Feb 03, 2019 3:58 am
Forum: Troubleshooting
Topic: Radar Project Using Ultra Sonic Sensor
Replies: 21
Views: 4604

Re: Radar Project Using Ultra Sonic Sensor

An item like the SR04 has a 15 degree cone of emission. A SR04 does not give accurate distance readings whiles the SR04 is moving. Thus, the SR04 will have to ping, move, stop, ping... The SR04 is a noisy device but with about 30.00USD bucks of modifications you can get 2 to give stable and accurate...
by Idahowalker
Wed Jan 16, 2019 4:33 am
Forum: Python
Topic: Read Multiple Lines of Data At Once
Replies: 2
Views: 776

Re: Read Multiple Lines of Data At Once

If you want your program to do 2 things at the same time you may consider multiprocessing on the RPi as one option. You could, also, consider using several inexpensive STM32 Blue pills and assign one blue pill to each channel of the ADC and then have each STM32 report its findings to the RPi. This s...
by Idahowalker
Wed Jan 16, 2019 4:17 am
Forum: Beginners
Topic: UART on Pi3B & 3B+ ?
Replies: 5
Views: 1004

Re: UART on Pi3B & 3B+ ?

I ran a RPi to Arduino Due serial communication at 230400 without issues. I did not use any hardware flow control. I used software flow control. I used "<" to start a message and ">" to end a message sentence for each direction. I'd ignore bytes till the data stream hit a ">" and keep collecting dat...
by Idahowalker
Tue Jan 15, 2019 2:14 am
Forum: Troubleshooting
Topic: Static shock causing false GPIO detection
Replies: 14
Views: 904

Re: Static shock causing false GPIO detection

Got an Ohm meter? If so what is the resistance reading between the case and the RPi common, GND? Ohm with and without cables connected. Connect one cable at a time and ohm. If you get less then Infinity that's a problem. When you take the Ohm measurements do not touch the case or the ohm meter leads...
by Idahowalker
Mon Jan 14, 2019 3:10 am
Forum: Python
Topic: GPIO Wait For Edge On More Than One Pin
Replies: 3
Views: 584

Re: GPIO Wait For Edge On More Than One Pin

Using your favorite search engine look up 'GPIO callbacks" have the callbacks set a global and have your loop check the status of the global is one way to do this task.
by Idahowalker
Thu Jan 10, 2019 2:35 pm
Forum: Python
Topic: Converting Float Values Into Bytes for SPI
Replies: 8
Views: 1331

Re: Converting Float Values Into Bytes for SPI

When I send floats to a Arduino Uno, Mega, Due, STM32, and ESP32 using a RPi serial port I sent the data as bytes by using sSend = "blah blah blah 1234.567" sSend = sSend.encode('utf-8') Perhaps that will work in your situation? Also, sSend = b("blah blah blah 1234.5678") works as well Thanks For t...
by Idahowalker
Thu Jan 10, 2019 12:51 pm
Forum: Automation, sensing and robotics
Topic: "UFO Radar" with magnetometer
Replies: 7
Views: 783

Re: "UFO Radar" with magnetometer

I have a MPU9250 that comes with a magnetometer but your most likely looking for a 3 axis Fluxgate magnetometer. Thanks! Can you explain in layman's terms how a 3-axis fluxgate magnetometer is different from what the Sense Hat is equipped with? Sensitivity. The least sensitive device would be a hal...
by Idahowalker
Thu Jan 10, 2019 12:23 pm
Forum: Automation, sensing and robotics
Topic: "UFO Radar" with magnetometer
Replies: 7
Views: 783

Re: "UFO Radar" with magnetometer

I have a MPU9250 that comes with a magnetometer but your most likely looking for a 3 axis Fluxgate magnetometer.
by Idahowalker
Thu Jan 10, 2019 12:12 pm
Forum: Python
Topic: Converting Float Values Into Bytes for SPI
Replies: 8
Views: 1331

Re: Converting Float Values Into Bytes for SPI

When I send floats to a Arduino Uno, Mega, Due, STM32, and ESP32 using a RPi serial port I sent the data as bytes by using

sSend = "blah blah blah 1234.567"
sSend = sSend.encode('utf-8')

Perhaps that will work in your situation?

Also, sSend = b("blah blah blah 1234.5678") works as well
by Idahowalker
Wed Jan 09, 2019 7:36 pm
Forum: Troubleshooting
Topic: HELP NEEDED! Couldn’t transmit through Uart
Replies: 3
Views: 286

Re: HELP NEEDED! Couldn’t transmit through Uart

Have you tried a loop back test? With a loopback test you can see if the RPi is set up properly. Entering the words 'raspberry pi serial loopback' into your favorite search engine will give you a plethora of options for a loop back test. Once you have completed a loopback test you can move outside o...
by Idahowalker
Wed Jan 02, 2019 9:13 pm
Forum: Beginners
Topic: How to solder BME280 in a robust way to NodeMCU so that I get no heating issues (which cause false readings)
Replies: 6
Views: 1016

Re: How to solder BME280 in a robust way to NodeMCU so that I get no heating issues (which cause false readings)

My first question is where is the RPi in this scheme? Next, I have a GPS unit I built around a ESP32 that has a temperature / barometer / blah / blah sensor. I soldered the sensor, in a box, as far away from the ESP32 as I could get it and I put a few vent holes in the box for ventilation. I then ra...
by Idahowalker
Sat Dec 29, 2018 4:46 pm
Forum: Python
Topic: How to compare current and next day
Replies: 27
Views: 1914

Re: How to compare current and next day

vajra11 wrote:
Sat Dec 29, 2018 3:42 pm
Idahowalker wrote:
Sat Dec 29, 2018 1:40 pm

You created a global variable but you did not declare count in the local functions as global.
I declared global but still giving error perhaps I am making a mistake
Look more closely at the code of my initial response.
by Idahowalker
Sat Dec 29, 2018 1:40 pm
Forum: Python
Topic: How to compare current and next day
Replies: 27
Views: 1914

Re: How to compare current and next day

I seen #!/usr/bin/env python from tkinter import * from time import sleep import RPi.GPIO as GPIO import time import datetime GPIO.setmode(GPIO.BCM) INPUT_PIN = 21 GPIO.setup(INPUT_PIN, GPIO.IN) count = 0 def my_callback(channel1): global count ################################################# <<< ...
by Idahowalker
Sat Dec 29, 2018 1:58 am
Forum: Beginners
Topic: OLED HAT - partially problem
Replies: 3
Views: 859

Re: OLED HAT - partially problem

What are you expecting the display to show?

What is the code you are using to send stuff to the display?
by Idahowalker
Fri Dec 28, 2018 7:50 pm
Forum: Beginners
Topic: Which pi should I buy?
Replies: 15
Views: 1531

Re: Which pi should I buy?

Should one go for the latest and greatest, as a general rule, if one could? Getting into pi for the first time, coming from programming background. In the world of software the latest version is best waited out for a bit. Is the same apply here? Or one should buy the latest? Programmer. Buy the bes...
by Idahowalker
Sun Dec 23, 2018 3:15 pm
Forum: Python
Topic: How to stop script after multiple activations
Replies: 6
Views: 912

Re: How to stop script after multiple activations

You could count the number of times the callback runs and then at the point of count reached detach the callback.

iCount = iCount + 1

if iCount == 10

GPIO.remove_event_detect(channel)

and you might want to break out of your infinite loop after the callback remove.
by Idahowalker
Sat Dec 22, 2018 12:34 pm
Forum: Automation, sensing and robotics
Topic: Raspberry Pi official case gpio problem
Replies: 1
Views: 1597

Re: Raspberry Pi official case gpio problem

I use a ribbon cable connected to the RPi, the case closes with the ribbon cable. I attach the ribbon cable to a RPi HAT development board and make my connections from there.
by Idahowalker
Fri Dec 21, 2018 12:43 pm
Forum: Python
Topic: Pi to Pi Communication
Replies: 2
Views: 636

Re: Pi to Pi Communication

Post the Python code you are using to do all this and the error messages you are getting.
by Idahowalker
Tue Dec 18, 2018 12:39 am
Forum: Troubleshooting
Topic: Need help with level shifter from 3.3V to 5V
Replies: 6
Views: 2845

Re: Need help with level shifter from 3.3V to 5V

Perchance is the 5V common and the 3.3V common tied together at some point, perhaps at the level shifter?

Bring the 5V common to the level shifter ground. There is a connection for the 5V common on the high side.
by Idahowalker
Mon Dec 17, 2018 12:12 pm
Forum: Python
Topic: Have a certain time to do something
Replies: 2
Views: 345

Re: Have a certain time to do something

import time class cRuntime(): def __init__(self): self.iStartTime = int( time.time() ) self.iRunTimeDays = 0 self.iRunTimeHours = 0 self.iRunTimeMinutes = 0 self.iRunTimeSeconds = 0 def fDoRunTime( self ): self.iRunTimeDays = divmod( (int(time.time()) - self.iStartTime), 86400 ) self.iRunTimeHours =...

Go to advanced search