Go to advanced search

by butchergg
Sun Dec 02, 2018 2:49 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: btbutton - C++ program to interface with cheap Bluetooth buttons
Replies: 2
Views: 768

Re: btbutton - C++ program to interface with cheap Bluetooth buttons

MQTT interface would fall into the "left to the student" category... :D What I wanted to do was capture the udev-poll integration, as that doesn't seem to be out there for others to consider. In my trials, select() proved problematic because the hidraw0 file descriptor is created and destroyed at th...
by butchergg
Sun Dec 02, 2018 2:37 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: btbutton - C++ program to interface with cheap Bluetooth buttons
Replies: 2
Views: 768

btbutton - C++ program to interface with cheap Bluetooth buttons

I needed to interface a Bluetooth button to my Raspberry-Pi/X10 controlled Christmas lights. Seemed simple... After messing with all sort of udev, dbus, /sysfs, select, poll, libevent, and the like, I came up with a libudev-poll solution as the easiest-to-understand, cleanest implementation, and mos...
by butchergg
Sun Mar 31, 2013 4:00 am
Forum: General discussion
Topic: PLC / Ladder Software
Replies: 9
Views: 10619

Re: PLC / Ladder Software

I just posted my hack of ldmicro's ldinterpret to github: https://github.com/butcherg/ldpi Uses wiringPi to read and control the GPIO pins. I tested it with a simple one-rung ladder, one contact energizing a coil, watched it run with the wiringPi gpio program hacked to include a 'top' command. I use...
by butchergg
Thu Nov 15, 2012 2:13 am
Forum: Raspbian
Topic: Has anyone successfully created a supercomputer Raspberry Pi
Replies: 2
Views: 912

Re: Has anyone successfully created a supercomputer Raspberr

No, but in anticipation of operating four RPi (I have two now, will order two more), I wrote a c program that will take a command line and run it x times, substituting at a place ($) in the command line with members of a list x long. Looks something like this: $ iterate -l one,two "ssh pi@$ sudo shu...
by butchergg
Sun Oct 28, 2012 6:42 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: 'Standard' Expansion Board Form Factor
Replies: 0
Views: 716

'Standard' Expansion Board Form Factor

Hi, just received my order of two boards, easily configured with raspian and ssh access over the ethernet. Very sweet. I've been looking over the alternatives for using the GPIO, with an eye to eventually building a board set for model railroad control, like C/MRI. Doing so, it occurs to me that an ...

Go to advanced search