Go to advanced search

by scootergarrett
Sun May 31, 2020 1:24 pm
Forum: Automation, sensing and robotics
Topic: Water Tank Monitoring System
Replies: 8
Views: 290

Re: Water Tank Monitoring System

I too have used ultrasound to measure distance to the surface of water. That is how I know it take my toilet 5:10 to fill up.
by scootergarrett
Fri May 29, 2020 12:47 am
Forum: Automation, sensing and robotics
Topic: Getting Input from a Pulse Oximeter?
Replies: 1
Views: 111

Re: Getting Input from a Pulse Oximeter?

How about this https://www.sparkfun.com/products/15219. Looks like it's got I2C, you might ghb t need a case or way to mount to your finger
by scootergarrett
Sat May 09, 2020 7:20 pm
Forum: Automation, sensing and robotics
Topic: Receive Treadmill speed data on Raspberry Pi
Replies: 6
Views: 234

Re: Receive Treadmill speed data on Raspberry Pi

That amazon device (although lacking some detail) Seems like a good idea. Wont need any circuitry but will have a cardboard disk somewhere, and you will need to mount the device. Another nice feature is you can do a bunch of testing with out having to run the tread mill, just spin the disk by hand (...
by scootergarrett
Fri May 08, 2020 6:13 pm
Forum: Other projects
Topic: OBDII port on my car. Should I make my own pi or use a prebuilt kit?Also looking for autopi reviews
Replies: 1
Views: 195

Re: OBDII port on my car. Should I make my own pi or use a prebuilt kit?Also looking for autopi reviews

That thing looks pretty cool, it seems to have a lot of features, and nice dashboard. Years ago I got https://www.sparkfun.com/products/9555 with the cable https://www.sparkfun.com/products/10087 and had some fun working making my own little program to log data. The hard part is power the pi from th...
by scootergarrett
Fri May 08, 2020 5:59 pm
Forum: Automation, sensing and robotics
Topic: Receive Treadmill speed data on Raspberry Pi
Replies: 6
Views: 234

Re: Receive Treadmill speed data on Raspberry Pi

What about a cheep headphone splitter? Then the sensor could still plug into the treadmill and you could probe at the new free end? Just a though. You would have to probe the output of the sensor before plugging into the pi to make sure its not going to damage anything. It might take some circuitry ...
by scootergarrett
Sat Mar 21, 2020 2:51 pm
Forum: Advanced users
Topic: Web brower on terminal
Replies: 2
Views: 151

Re: Web brower on terminal

Well I guess it worked. I got the info on how to install from here https://vankoo.wordpress.com/2015/05/19 ... -terminal/
by scootergarrett
Sat Mar 21, 2020 2:49 pm
Forum: Advanced users
Topic: Web brower on terminal
Replies: 2
Views: 151

Web brower on terminal

I'm trying to make a post using a pi and the terminal web browser Lynx
by scootergarrett
Tue Mar 17, 2020 8:21 pm
Forum: Automation, sensing and robotics
Topic: Visual mapping of room
Replies: 12
Views: 718

Re: Visual mapping of room

I found an Xbox Kinect at the dump and got it plugged into a pi. It also needs 12V power source. I had some C code to take get depth data from the camera and plot it. The field of view is limited if you are trying to do an entire room. Just some thoughts.
by scootergarrett
Mon Mar 16, 2020 2:29 pm
Forum: C/C++
Topic: C program with USB Phone modem
Replies: 4
Views: 394

Re: C program with USB Phone modem

I like the idea of having two talk to each other, send file at dial up speeds. I have used some of the AT commands to have it make calls, but without audio there isn't much to do.

It doesn't help that I just watched War Games.
by scootergarrett
Sun Mar 15, 2020 10:23 pm
Forum: C/C++
Topic: C program with USB Phone modem
Replies: 4
Views: 394

C program with USB Phone modem

I got a cheep USB phone modem https://www.amazon.com/External-Compatible-Windows-Support-Auto-Dial/dp/B008RZTJC0/ref=sr_1_4?keywords=USB+phone+modem&qid=1584310434&sr=8-4 and got some C code working to log caller ID data. The program sets up com with the USB device, then loops forever waiting for da...
by scootergarrett
Sun Feb 23, 2020 4:58 pm
Forum: C/C++
Topic: N46 controller
Replies: 4
Views: 390

Re: N46 controller

Got something working using <linux/joystick.h>. I set it up so a thread can run in the background and updates a structure with the current status of the controller. Then the main program can poll that when needed. I thinking it would be cool to make some type of 'watch dog' so when a button it press...
by scootergarrett
Sat Feb 22, 2020 6:10 pm
Forum: C/C++
Topic: N46 controller
Replies: 4
Views: 390

Re: N46 controller

I found

Code: Select all

#include <linux/joystick.h>
that seems to be working. I'm not sure if its pre-installed or I installed and don't remember. More to follow
by scootergarrett
Sat Feb 22, 2020 4:06 pm
Forum: C/C++
Topic: N46 controller
Replies: 4
Views: 390

N46 controller

I got a cheep N64 USB controller https://www.amazon.com/dp/B07Z7TJQSW/ref=twister_B08118J1QX?_encoding=UTF8&psc=1 and tinkered with retropi. Now I'm trying to use it as an input to a C program. internet searches result in a lot about using it with retro pi, bur not for access through C. I can see th...
by scootergarrett
Sat Jan 04, 2020 6:26 pm
Forum: C/C++
Topic: C code for using Adafruit Universal Thermocouple Amplifier MAX31856 Breakout
Replies: 0
Views: 353

C code for using Adafruit Universal Thermocouple Amplifier MAX31856 Breakout

I put together some C code for using the Thermocouple Amplifier https://www.adafruit.com/product/3263 with the pi. Same hook up as shown in the guide https://learn.adafruit.com/adafruit-max31856-thermocouple-amplifier/python-circuitpython . It uses the pigpio library Header file MAX31856.h: /// MAX3...
by scootergarrett
Thu Dec 26, 2019 5:13 pm
Forum: C/C++
Topic: GTK and pigpio.h level change callback
Replies: 6
Views: 491

Re: GTK and pigpio.h level change callback

Thanks a lot. I think I have the solution (still stress testing program, but its running strong for 10+ minutes). I'm using a timed callback g_timeout_add, to call a function on a time schedule, and updating the text from there. I think this keeps it in the GTK thread 'scope' (may be wrong use of sc...
by scootergarrett
Thu Dec 26, 2019 4:12 pm
Forum: C/C++
Topic: GTK and pigpio.h level change callback
Replies: 6
Views: 491

Re: GTK and pigpio.h level change callback

I made a g_thread_new that controls the display text. It updates the text every 50ms. This seems to work for longer but eventual stops working the same as before #include <stdio.h> /// IO functions #include <string.h> /// String functions #include <math.h> /// Math functions #include <stdlib.h> /// ...
by scootergarrett
Thu Dec 26, 2019 2:02 pm
Forum: C/C++
Topic: GTK and pigpio.h level change callback
Replies: 6
Views: 491

GTK and pigpio.h level change callback

I'm working on a larger project, running into issues with changing the text on a GUI based on the state of a GPIO pin. The text on the GUI changes when the state of pin 17 changes state using the gpioSetAlertFunc to call a function. After a few pin changes (not always the same amount) I get an error...
by scootergarrett
Sun Dec 15, 2019 10:36 pm
Forum: C/C++
Topic: Pi Plates C functions
Replies: 1
Views: 884

Re: Pi Plates C functions

Because WiringPi is now deprecated I went through my PiPlates code and updated to use http://abyz.me.uk/rpi/pigpio/ . Header code: // Header for using the pi plates. It's not as complete as it could be // but its a good start. It relies on the pigpio.h // at the start of the code gpioInitialise(); a...
by scootergarrett
Mon Dec 02, 2019 12:55 am
Forum: Beginners
Topic: Pi 3 Disney+ Streaming Device
Replies: 5
Views: 12743

Re: Pi 3 Disney+ Streaming Device

I would also like to see this work. I might mess around trying stuff. Mostly in an attempt to impress the GF.
by scootergarrett
Wed Jul 10, 2019 2:06 pm
Forum: Automation, sensing and robotics
Topic: Using Adafruit's Peristaltic Liquid Pump with the Pi
Replies: 9
Views: 920

Re: Using Adafruit's Peristaltic Liquid Pump with the Pi

If its going to click on and off a few times a day I would suggest a relay (https://www.amazon.com/JBtek-Channel-Module-Arduino-Raspberry/dp/B00KTEN3TM?ref_=fsclp_pl_dp_1) If its click on off a lot maybe look into a solid state relay, or a home designed circuit with a MOSFET to save some money. This...
by scootergarrett
Tue Jul 02, 2019 7:17 pm
Forum: Automation, sensing and robotics
Topic: Pi Residential Power Panel Monitoring
Replies: 5
Views: 821

Re: Pi Residential Power Panel Monitoring

What about something like this
https://www.sparkfun.com/products/299
I don't know your sampling speed but with a single 4 channel ADC, 4 x 16channel multiplexers you would have 64 channels.
just a thought
by scootergarrett
Tue May 28, 2019 12:34 pm
Forum: C/C++
Topic: printf issue on raspbian
Replies: 9
Views: 2246

Re: printf issue on raspbian

I'm thinking you need to do a "screen flush".
by scootergarrett
Fri Apr 19, 2019 7:00 pm
Forum: Troubleshooting
Topic: VNC wont start untill I move mouse pi Zero only
Replies: 2
Views: 220

VNC wont start untill I move mouse pi Zero only

I'm trying to run a pi zero headless. But the VNC wont start up until I move the mouse. I can see this when I connect it to a screen and mouse. It works fine on the Pi3B+. This didn't seem to be a problem until I updated. Any thoughts?
by scootergarrett
Sat Jan 05, 2019 9:50 pm
Forum: C/C++
Topic: Pi Plates C functions
Replies: 1
Views: 884

Pi Plates C functions

With some help from https://www.raspberrypi.org/forums/viewtopic.php?f=33&t=229685 . I was able to start a library of functions to run the DAC and the Relay pi plates https://pi-plates.com/ . I went through the python code an translated into basic C. The functions have the same form (argument order)...

Go to advanced search