Go to advanced search

by cdenney
Wed Mar 13, 2019 8:09 pm
Forum: Beginners
Topic: Best way to splice multiple wires/components into a single circuit
Replies: 11
Views: 715

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

Thanks, for some reason I hadn't seen those version of the lever lock (even though I've looked at a similar product. I think a combination of the bus and the lever locks will solve both the heater and the I2C sensor connection problems.
by cdenney
Wed Mar 13, 2019 7:20 pm
Forum: Beginners
Topic: Best way to splice multiple wires/components into a single circuit
Replies: 11
Views: 715

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

Why the PWM pin, you cannot PWM a relay, its either on or off. here is some info on how to wire a relay (module) to an RPI. https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=83372&p=1225448#p1225448 It's a solid state relay of this type: https://www.amazon.com/TinaWood-SSR-25DD-Solid-State-5-...
by cdenney
Wed Mar 13, 2019 6:38 pm
Forum: Beginners
Topic: Best way to splice multiple wires/components into a single circuit
Replies: 11
Views: 715

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

here is a really rough schematic of how I would like to wire up the heaters: Pi-wiring-diagram.png It's what to do about those nodes that I am unsure of. Soldering 6 wires onto 1 wire seems like a bad idea (although I have found some instructions on how to do it) The built in wires on the heaters ar...
by cdenney
Wed Mar 13, 2019 5:58 pm
Forum: Beginners
Topic: Best way to splice multiple wires/components into a single circuit
Replies: 11
Views: 715

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

I have a project that has several resistive heaters on a single control circuit. I am moving it off of the prototype breadboard and want to wire it permanently. I want to wire them in parallel, but can't find the best way to splice them all together. Similarly, the project will have several I2C comp...
by cdenney
Tue Mar 05, 2019 4:42 pm
Forum: Beginners
Topic: Moving from prototype to finished product
Replies: 2
Views: 261

Moving from prototype to finished product

I've been working on a project that I want to move to it's finalized form. Part of this is moving the pi and the rest of the electronics into a junction box to keep them organized/clean/together/etc. However, I'm not sure what the best way to do this is. The junction box has screw holes for mounting...
by cdenney
Fri Mar 01, 2019 8:22 pm
Forum: Beginners
Topic: PID control for resistive heaters
Replies: 8
Views: 336

Re: PID control for resistive heaters

Do you know where I could start looking to find a digitally controlled PWM component/board? All the ones I found on amazon were dial controlled and I couldn't find any at all on Adafruit. Is that something I will have to put together myself?
by cdenney
Fri Mar 01, 2019 6:40 pm
Forum: Beginners
Topic: PID control for resistive heaters
Replies: 8
Views: 336

Re: PID control for resistive heaters

Does that mean I could use a standard on-off relay to just switch a 12V power source on and off at different duty cycle loads?
by cdenney
Fri Mar 01, 2019 5:55 pm
Forum: Beginners
Topic: PID control for resistive heaters
Replies: 8
Views: 336

PID control for resistive heaters

I would like to control several resistive heaters that can accept up to 12V at 1.4 amps with the pi. Since the pi can't support that level of voltage or amperage, I'm going to need a board that can accept control from the pi for a separate power input. I'm trying to get PID control rather than just ...
by cdenney
Thu Feb 21, 2019 3:58 pm
Forum: Beginners
Topic: Python script starting at reboot, not sure how/why
Replies: 4
Views: 271

Re: Python script starting at reboot, not sure how/why

Edited because I'm dumb. It IS a service, (although considering it wasn't doing this a few days ago, I'm very confused about how), but I can't find where the service file is saved. it's not in the folder that the above linked documentation recommends for saving services. Any advice on how to find an...
by cdenney
Thu Feb 21, 2019 4:40 am
Forum: Beginners
Topic: Python script starting at reboot, not sure how/why
Replies: 4
Views: 271

Python script starting at reboot, not sure how/why

I have a python script that I eventually want to start on reboot, but for now I'm testing it still and only want it to run when I tell it to. At some point, I editied crontab to test the reboot startup. I used crontab -e then @reboot python scriptname.py it worked, and when I was done testing it, I ...
by cdenney
Fri Feb 15, 2019 10:07 pm
Forum: Python
Topic: Trying to find out which python modules I have installed
Replies: 2
Views: 232

Trying to find out which python modules I have installed

I tried to run help('modules') from the terminal to see which modules I had isntalled. It started working, telling me "Please wait a moment while I gather a list of all available modules...". Then it crashed out with the following message: "Warnings, could not find Analog or Touch...Please check you...
by cdenney
Mon Feb 11, 2019 5:40 pm
Forum: Automation, sensing and robotics
Topic: High reliability, high accuracy temperature/humidity sensor
Replies: 11
Views: 1621

High reliability, high accuracy temperature/humidity sensor

I need a temperature/humidity sensor that will have high reliability and high accuracy for continuous use of weeks at a time. I have a test build right now that uses the AM2302 sensor from Adafruit, but the sensor failed the other day during testing (at least, as far as I can tell it failed. Any scr...
by cdenney
Sun Feb 10, 2019 5:24 am
Forum: Python
Topic: try-except loop with sleep command
Replies: 3
Views: 236

Re: try-except loop with sleep command

The

Code: Select all

try:
except:
   raise

seems exactly like what I'm looking for, thanks.
by cdenney
Sat Feb 09, 2019 9:07 pm
Forum: Python
Topic: try-except loop with sleep command
Replies: 3
Views: 236

try-except loop with sleep command

I'm testing a build right now that involves a small screen currently connected through a breadboard. The program/build is meant to run continuously for long periods of time. During testing the other day, the screen temporarily lost connection through the bread board causing the program to crash out ...
by cdenney
Mon Jan 28, 2019 11:13 pm
Forum: Troubleshooting
Topic: Can't get to any websites (including router page) despite being connected to wifi network
Replies: 5
Views: 206

Re: Can't get to any websites (including router page) despite being connected to wifi network

/etc/dhcpcd.conf has a static router and a static domain_name_servers setting currently it is as follows: static routers=99.113.71.229 static domain_name_servers=99.113.71.229 I'm assuming I should change the routers to the current router IP address, but should I also change the domain_name_servers ...
by cdenney
Mon Jan 28, 2019 10:41 pm
Forum: Troubleshooting
Topic: Can't get to any websites (including router page) despite being connected to wifi network
Replies: 5
Views: 206

Re: Can't get to any websites (including router page) despite being connected to wifi network

That's my old address from before I moved. I no longer live in Davis and no longer have AT&T as my service provider. That seems likely to be the problem. How would I go about fixing it? -edit- results from ifconfic (sorry for any typos, I'm having to transcribe it since my pi doesn't have any intern...
by cdenney
Mon Jan 28, 2019 7:28 pm
Forum: Troubleshooting
Topic: Can't get to any websites (including router page) despite being connected to wifi network
Replies: 5
Views: 206

Can't get to any websites (including router page) despite being connected to wifi network

I connected my raspberry pi to the wifinetwork today and it shows a succesful connection in the toolbar. However, when I attempt to visit any website, I get a "this site can't be reached" error. This includes entering the ip address of the router (which works perfectly on all the other machines conn...
by cdenney
Fri Aug 03, 2018 2:31 am
Forum: Beginners
Topic: Continuous running python script exit
Replies: 2
Views: 253

Re: Continuous running python script exit

Idahowalker wrote:
Fri Aug 03, 2018 12:21 am
Enter into your favorite search thingy "Python Try Except Finally" to find a plethora of information that should suit your request.
Keyboard interrupt did it, thank you.
by cdenney
Fri Aug 03, 2018 12:04 am
Forum: Beginners
Topic: Continuous running python script exit
Replies: 2
Views: 253

Continuous running python script exit

I wrote a script that continually checks the temperature from a DHT sensor and displays it on a small OLED screen. It gives the most recent reading and the 5 minute running average. The temp checker/display code runs inside of while True: loop. Currently, to exit the loop, I just hit ctrl+c in the t...
by cdenney
Thu Aug 02, 2018 2:43 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: shapes.py for SSD1306 OLED display error
Replies: 1
Views: 437

Re: shapes.py for SSD1306 OLED display error

Ugh...this is embarrassing. Had my wires crossed. It's working now.
by cdenney
Thu Aug 02, 2018 2:23 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: shapes.py for SSD1306 OLED display error
Replies: 1
Views: 437

shapes.py for SSD1306 OLED display error

I followed the Adafruit setup guide found here: https://learn.adafruit.com/ssd1306-oled-displays-with-raspberry-pi-and-beaglebone-black/usage I made the appropriate changes in shapes.py file (I have a 128x64 i2c display (this one to be exact: https://www.amazon.com/gp/product/B072Q2X2LL/ref=ox_sc_ac...
by cdenney
Sat Jul 28, 2018 7:35 pm
Forum: Beginners
Topic: Write mySQL database as .csv
Replies: 6
Views: 449

Re: Write mySQL database as .csv

DougieLawson wrote:
Sat Jul 28, 2018 5:58 pm
Try running it as root

sudo -s
mysql temperatures < /tmp/csv.sql
That did it! thank you. My only other question is, is it possible to save this file to my local machine if I am ssh'd in?
by cdenney
Sat Jul 28, 2018 4:27 pm
Forum: Beginners
Topic: Write mySQL database as .csv
Replies: 6
Views: 449

Re: Write mySQL database as .csv

I assume I was supposed to run the nano code, then write and save the indented code (with the changes as appropriate for my table), then run the mysql line correct?

I got ERROR 1045 (28000) at line 1: Access denied for user 'logger'@'localhose' (using password: YES)
by cdenney
Sat Jul 28, 2018 2:43 am
Forum: Beginners
Topic: Write mySQL database as .csv
Replies: 6
Views: 449

Write mySQL database as .csv

My big picture goal is that I just want a .csv export of the mySQL database. I've figured out how to my sql backups but when I try and write it as a .csv, I get access denied errors. When I created the database, I used the following terminal commands: sudo mysql -u root -p -h localhost CREATE DATABA...

Go to advanced search