Go to advanced search

by red6
Wed Jul 08, 2015 3:17 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Can I power Pi 2 thru the GPIO header
Replies: 2
Views: 569

Re: Can I power Pi 2 thru the GPIO header

Thanks for your response. I am guessing then that the python code or the i2c support in the kernel is causing an issue because this code worked well on a Pi Revision 0003. (Pi B 512Mb)
by red6
Wed Jul 08, 2015 2:39 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Can I power Pi 2 thru the GPIO header
Replies: 2
Views: 569

Can I power Pi 2 thru the GPIO header

I have a Pi 2 with an Adafruit LCD Pi Plate mounted on the header. Then on top of that I have a ribbon cable going to a Adafruit Breadboard Pi header. On the breadboard I have a DallasDS18B20 digital temperature probe, a Dallas DS1307 Battery Clock and an Adafruit INA219. The breadboard is powered b...
by red6
Tue Jun 30, 2015 7:19 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C not working on Pi 2
Replies: 11
Views: 1310

Re: I2C not working on Pi 2

http://www.hobbytronics.co.uk/adc-i2c-slave?keyword=adc IIRC that device needs "clock stretching" to work, which the Pi can't do (there is an old forum thread about that issue). Trev. Sounds like a very good explanation to me. I guess I was just lucky with that device (see above) on earlier version...
by red6
Tue Jun 30, 2015 4:36 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C not working on Pi 2
Replies: 11
Views: 1310

Re: I2C not working on Pi 2

Got the RGB Pi Plate working. Had to download the latest python from Adafruit github.

But looking at the Adafruit python libraries it would appear that the i2c is not used to control the RGB plate.
by red6
Tue Jun 30, 2015 4:29 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C not working on Pi 2
Replies: 11
Views: 1310

Re: I2C not working on Pi 2

Interesting.

My Adafruit i2c 16x2 RGB LCD Pi Plate does not work either.
by red6
Tue Jun 30, 2015 3:50 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C not working on Pi 2
Replies: 11
Views: 1310

Re: I2C not working on Pi 2

Made those changes. Clock working as per normal. Much cleaner way to setup the clock. Thanks.

Now for the Hobbytronics ADC. I have no idea what to try next :)
by red6
Tue Jun 30, 2015 3:41 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C not working on Pi 2
Replies: 11
Views: 1310

Re: I2C not working on Pi 2

Okay, I will make those changes to /boot/config.txt and scrap the rc.local stuff.

But I am still stumped as to why the ADC at 0x28 returns 20 bytes of 0xFF when I read 10 bit mode and all 10 channels.
by red6
Tue Jun 30, 2015 3:33 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C not working on Pi 2
Replies: 11
Views: 1310

Re: I2C not working on Pi 2

#uname -a 3.18.11-v7+ #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015 armv7l GNU/Linux Device tree... I will assume you mean something like this... I did the following... #cat /etc/rc.local echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device /bin/sleep 1 /sbin/hwclock -s and #i2cdetect -y 1 0 1...
by red6
Tue Jun 30, 2015 2:54 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C not working on Pi 2
Replies: 11
Views: 1310

I2C not working on Pi 2

I have many Pi's at Revision 3 (version 2 with 512mb) and have Dallas DS1307 Battery Backed Up Clock and Thermistors working with the HobbyTronics 10 channel 10 bit ADC. But on my new Pi 2 (Hardware: BCM2709 Revision: a21041 (China?) I cannot get the ADC working. Are there kernel issues with i2c on ...
by red6
Sat Jun 13, 2015 7:55 pm
Forum: Advanced users
Topic: How do I cross compile for the Rasp Pi 2
Replies: 0
Views: 383

How do I cross compile for the Rasp Pi 2

Documentation on the Raspberry Pi site indicates that Ubuntu is a good platform for cross compiling. It instructs you to get Ubuntu, download the toolchain and then the sources. I tried it under Debian but Wheezy doesn't have the older gcc etc. What version would be suggested. Thanks in advance for ...
by red6
Thu May 28, 2015 11:15 pm
Forum: Advanced users
Topic: Realtime on the Pi 2
Replies: 4
Views: 2829

Re: Realtime on the Pi 2

True. No pre-emption therefore no multi-tasking. Unless you explicitly turn pre-emption off in a scheduler because your main clock tick will get around to scheduling everything you need. But I guess what I was trying to say is that I was trying to figure how to build hard realtime instead of soft re...
by red6
Thu May 28, 2015 9:03 pm
Forum: Advanced users
Topic: Realtime on the Pi 2
Replies: 4
Views: 2829

Re: Realtime on the Pi 2

This is just a learning experience for me. And if you look at the tuturial you will see that it is possible to have enough load on a Pi that the task that drives the stepper motor does get pre-empted.
by red6
Thu May 28, 2015 6:18 pm
Forum: Advanced users
Topic: Realtime on the Pi 2
Replies: 4
Views: 2829

Realtime on the Pi 2

I would like to follow an excellent tutorial https://www.youtube.com/watch?v=uIXkvz1-weQ on creating a realtime environment and testing it on a Raspberry Pi. The tutorial essentially proves that with the proper kernel patches you can control a stepper motor accurately without the need for an add on ...
by red6
Fri Nov 01, 2013 2:11 pm
Forum: Advanced users
Topic: Simple A to D to monitor voltage
Replies: 50
Views: 48001

Re: Simple A to D to monitor voltage

So the INA219 is working for me with the python code. (Especially now that someone fixed the two's complement code for negative values when current is flowing the other way)

So definitely check out the entire thread on the adafruit site.
by red6
Thu Oct 31, 2013 1:14 pm
Forum: Advanced users
Topic: Simple A to D to monitor voltage
Replies: 50
Views: 48001

Re: Simple A to D to monitor voltage

Yes I guess you could say it is measuring throughput. Depending on how much current you want to measure, you need to possibly change the resistor on the INA219 by snippping out the surface mount factory resistor and installing a resistor that can handle a higher wattage and has a smaller value. You ...
by red6
Thu Oct 31, 2013 1:18 am
Forum: Advanced users
Topic: Simple A to D to monitor voltage
Replies: 50
Views: 48001

Re: Simple A to D to monitor voltage

No, I hit a stumbling block... lack of knowledge. That and there is a $10 ebay digital current meter that I used instead, no pi interface though. I got a system up and running to monitor my solar powered stuff. I have not had much time to document it. But you might want to check out the adafruit.co...
by red6
Wed May 29, 2013 7:28 am
Forum: Advanced users
Topic: Simple A to D to monitor voltage
Replies: 50
Views: 48001

Re: Simple A to D to monitor voltage

Trying to run the python code from Adafruit for the Arduino but adapted by 'ScottJW on Adafruit forums' for the Raspberry. No luck. Getting run time errors.

The code is at https://github.com/scottjw/subfact_pi_ina219
by red6
Wed May 29, 2013 6:47 am
Forum: Advanced users
Topic: Simple A to D to monitor voltage
Replies: 50
Views: 48001

Re: Simple A to D to monitor voltage

I am making headway. Got the INA219 showing up on port 40.

Using a Hobbytronics gpio connector (just like the adafruit cobbler) to connect to a breadboard.

Connecting 3.3 v, ground, scl (clock) and sda (data).

Now to see if I can read something useful.
by red6
Wed May 29, 2013 5:49 am
Forum: Advanced users
Topic: Simple A to D to monitor voltage
Replies: 50
Views: 48001

Re: Simple A to D to monitor voltage

Just connected an Adafruit INA219 Current Sensor Breakout board to a Raspberry Pi Version 1 (Model B). My Dallas clock board is working on the i2c bus but the INA219 is not detected when i run 'i2cdetect -y 0'. I suspect I have to use modprobe command or something to get it to be recognized? Am I on...
by red6
Tue Dec 04, 2012 10:22 pm
Forum: Networking and servers
Topic: Problem install Raspcontrol on Raspbian
Replies: 22
Views: 7610

Re: Problem install Raspcontrol on Raspbian

'screen' is really handy. We use it on a linux box to run a minecraft server under CentOS 6.3
Minecraft is game that runs under java and 'screen' seems to be the way most people get Minecraft running.
by red6
Tue Dec 04, 2012 9:42 pm
Forum: Networking and servers
Topic: Problem install Raspcontrol on Raspbian
Replies: 22
Views: 7610

Re: Problem install Raspcontrol on Raspbian

Is 'screen' installed? If not then do
[code]
apt-get install screen
[/code]
if you are root.

Or
[code]
sudo apt-get install screen
[/code]
if you are not root.
by red6
Tue Dec 04, 2012 8:45 pm
Forum: Networking and servers
Topic: Problem install Raspcontrol on Raspbian
Replies: 22
Views: 7610

Re: Problem install Raspcontrol on Raspbian

Waiting for newer features in it. And maybe I should check to see if there is a new release :D
by red6
Tue Dec 04, 2012 7:33 pm
Forum: Networking and servers
Topic: Problem install Raspcontrol on Raspbian
Replies: 22
Views: 7610

Re: Problem install Raspcontrol on Raspbian

Here is my start.sh. But I must admit I haven't actually used Raspcontrol since September... [email protected]:~/Raspcontrol# cat start.sh #! /bin/sh INIFILE="/root/Raspcontrol/server/server.ini" DOCROOT="/root/Raspcontrol/app/" ROUTER="/root/Raspcontrol/server/router.php" HOST=0.0.0.0 PORT=80 PHP=$(which ...
by red6
Sat Nov 17, 2012 2:51 am
Forum: Other projects
Topic: 20 x 4 LCD display with i2c - modprobe question
Replies: 8
Views: 7210

Re: 20 x 4 LCD display with i2c - modprobe question

That sounds promising. I don't have the resources to right this sort of code but I could test some of your code when you are ready. I've just started a little python library to handle this: https://github.com/PDKK/RpiLcdBackpack Right now, it can get some basic data on the screen, writing one charac...

Go to advanced search