Go to advanced search

by Idahowalker
Sun Feb 17, 2019 12:24 am
Forum: Python
Topic: Need help understanding this code
Replies: 2
Views: 78

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

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

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

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 ...
by Idahowalker
Fri Feb 15, 2019 12:27 pm
Forum: Automation, sensing and robotics
Topic: High reliability, high accuracy temperature/humidity sensor
Replies: 11
Views: 340

Re: High reliability, high accuracy temperature/humidity sensor

A + on the bme280 SPI connected sensors. Mine has been running in a project for 8+ months. My program, on an ESP32, does a read of the bme280 every 1 second.
by Idahowalker
Fri Feb 15, 2019 12:22 pm
Forum: Python
Topic: Need help modifying a Gmail message retrieval script
Replies: 16
Views: 247

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

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

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: 20
Views: 385

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: 5
Views: 172

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: 20
Views: 569

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Go to advanced search