Go to advanced search

by Peter247
Thu May 19, 2016 11:18 am
Forum: Troubleshooting
Topic: Openzwave on node-red , anyone got it working ?
Replies: 1
Views: 1026

Openzwave on node-red , anyone got it working ?

Hi , has anyone got openzwave , openzwave-shared , node-red-contrib-openzwave working ? This is what I'm using to run it on :- Node-RED version: v0.13.4 , Node.js version: v4.4.4 , Linux 4.4.9-v7+ arm LE , Raspberry Pi 3. I`m running as root and this is how I started the install . apt-get update apt...
by Peter247
Wed Feb 12, 2014 11:26 pm
Forum: Automation, sensing and robotics
Topic: Python-openzwave & Jasco 45609
Replies: 6
Views: 3002

Re: Python-openzwave & Jasco 45609

I been trying to get python-openzwave working for 2 whole day now , I don`t think it was every made to compile . I`m using to latest branches of each, so it should compile. I`ve read so my documents which say do this to install openzwave and python-openzwave . hg clone https://code.google.com/p/pyth...
by Peter247
Thu Jan 31, 2013 6:33 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: SPI Interfacing with Python
Replies: 5
Views: 2539

Re: SPI Interfacing with Python

Hope you have better luck than I with spi using python spidev wrappers ?. I am using a mcp3008 , but after running my code for about 3 to 4 hour it would just lock up. So I`ve moving my spi development to quick2wire, which I`ve had the same converted code running for 16 days before rebooting with ou...
by Peter247
Thu Jan 17, 2013 11:47 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: tmp102
Replies: 26
Views: 15345

Re: tmp102

Nop , a big freeze is a big freeze , it`s -4.5 c outside and takes half a hour to get my car out each day .
So the snow is still there since Sunday night , and because it is not going above freezing will be that way until the sun starts shines again , welcome to the north of England.
by Peter247
Wed Jan 16, 2013 11:19 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: tmp102
Replies: 26
Views: 15345

Re: tmp102

We had a big freeze last night ,so had a chance to check my code , and found I was totally wrong how to deal with minus temperatures , this is due to my translation of the your pdf document.
by Peter247
Wed Jan 16, 2013 10:57 am
Forum: Automation, sensing and robotics
Topic: Starting with project to read in data from multiple sensors
Replies: 3
Views: 1097

Re: Starting with project to read in data from multiple sens

The PI as no adc to read voltage you need to use i2c or spi adc for this.
For temperature I use a tmp102 , which just search and you will see all about that.

For pushing your temperature to a web i would use cosm or thingspeak instead of making your own graphs.
by Peter247
Tue Jan 15, 2013 2:55 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: 5V i2c device problems
Replies: 8
Views: 3113

Re: 5V i2c device problems

I think a tmp102 is capable of 400k , but does not have to run at that rate .
I`ve knocked mine down to 40k , to see if it would work with my adc at 40k.

make a file " /etc/modprobe.d/i2c.conf "
and use:-

options i2c_bcm2708 baudrate=400000

and Reboot !!!! and now you should have 400k
by Peter247
Tue Jan 15, 2013 2:46 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: tmp102
Replies: 26
Views: 15345

Re: tmp102

Easy said than done , dragging all the stuff downstairs to test it out.
It would be easier to move the freezer upstairs !!!!!
by Peter247
Tue Jan 15, 2013 2:01 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Problems reading TMP102 via i2c
Replies: 14
Views: 2072

Re: Problems reading TMP102 via i2c

I am using Quick2wire for both spi and i2c , becauce i wanted to program in python 3.
l`ve tried using the smbus library and didn't have errors with it.
It`s strange you have problems with the tmp102 , but don`t with the ones which are know to be problematic.
by Peter247
Tue Jan 15, 2013 1:50 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: 5V i2c device problems
Replies: 8
Views: 3113

Re: 5V i2c device problems

The speed the rate the bus is set at , not the top speed of each chip.

You are not saying if you are using python or c++ and which labrary you are using.
If you are using python i2cdev the default speed is 100k.
by Peter247
Mon Jan 14, 2013 10:34 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Problems reading TMP102 via i2c
Replies: 14
Views: 2072

Re: Problems reading TMP102 via i2c

Yep and I think the Hobbytronic adc as the same problem.
by Peter247
Mon Jan 14, 2013 10:32 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: tmp102
Replies: 26
Views: 15345

Re: tmp102

I problem is easier than I thought , it says for negative values add 1 , which if Hi_byte was in a byte form would just make it overflow and return back to zero. For the Hi_byte is really in a integer I just masked anything out of the byte range, Not sure if I need to mask out the last bit yet , bec...
by Peter247
Mon Jan 14, 2013 10:02 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Problems reading TMP102 via i2c
Replies: 14
Views: 2072

Re: Problems reading TMP102 via i2c

Try without the adc ? I`ve got a Byvac adc and a Lcd display , plus the Hobbytronics and I`ve still got problems with them. I`ve run the tmp102 for weeks without any problems , But tried to use my Byvac i2c display and it would work for a while then lock the bus up and stop the other devices working...
by Peter247
Mon Jan 14, 2013 9:53 am
Forum: Python
Topic: Problem with quick2wire installation
Replies: 5
Views: 3667

Re: Problem with quick2wire installation

Are you running your code in python 3 ?
by Peter247
Sun Jan 13, 2013 11:10 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Bit of an odd one...
Replies: 2
Views: 505

Re: Bit of an odd one...

I can`t really say , But If you pulled in a battery pack and some logo glowed , my guess is that the glowing logo is a el strip and the battery pack is it`s controller which make a high frequency / very voltage for the strip.
by Peter247
Sun Jan 13, 2013 11:01 pm
Forum: Automation, sensing and robotics
Topic: Thermistor basic questions
Replies: 5
Views: 1205

Re: Thermistor basic questions

I use a 100k thermistor with I think a 47k pull up resistor. This a connect to a mcp3008 10 bit adc , which is giving me 7.913 counts per degree C , so is up to around the 0.15 of a degree, which round down to one decimal place. I was thinking of getting a 12 or 13 bit adc to get that down to silly ...
by Peter247
Sun Jan 13, 2013 7:01 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Problems reading TMP102 via i2c
Replies: 14
Views: 2072

Re: Problems reading TMP102 via i2c

What other devices work ?.
All the other idea don`t follow like kernel problem / modules , if you have working drives.
What rate / speed are you running the bus it ?
by Peter247
Sun Jan 13, 2013 12:46 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: tmp102
Replies: 26
Views: 15345

Re: tmp102

I spent a couple of hour last night making my code work with minus temperatures. After looking at every bit of code I can find , written in c++ , and python for any and every platform I`ve found no code deal with minus temperatures. I think I`ve got to grips with i2c and can read and understand pdf ...
by Peter247
Sat Jan 12, 2013 12:08 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: connecting multiple PIs together over I2C ?
Replies: 12
Views: 8350

Re: connecting multiple PIs together over I2C ?

I guess it all depend on how many , how long , how fast .

You could have a chain of Pis using SPI each one getting data in one port and sending it out of the other and making a round robin .
by Peter247
Fri Jan 11, 2013 11:56 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Wireless power on / reset button
Replies: 10
Views: 5469

Re: Wireless power on / reset button

Not totally sure if I have you right . If you are asking what should you do with the two reset pins t . Just short them out !! Without looking and a big guess here . One pin will be the reset pin with a resistor pull high most likely and the other pin connected to ground , so will reset when shorted...
by Peter247
Fri Jan 11, 2013 11:43 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: connecting multiple PIs together over I2C ?
Replies: 12
Views: 8350

Re: conneting multiple PIs together over I2C ?

You could use SPI ?
@Tao gpio 18 and 19 ?

I know the Primary and Secondary I2C ports are 0, 1 or 28 and 29 , but not heard of 18 , 19 for I2C.
by Peter247
Fri Jan 11, 2013 4:04 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: tmp102
Replies: 26
Views: 15345

Re: tmp102

for smbus : def get_temp(): tmp = bus.read_word_data(HEAT_BASE_ADDRESS , 0 ) Lo = (tmp & 0xff00) >> 8 ; Hi = (tmp & 0x00ff) temp = ((( Hi * 256 ) + Lo) >> 4 ) * 0.0625 return temp for Quick2wire class tmp102: def __init__( self , CHIP_BASE_ADDRESS ): self.CHIP_BASE_ADDRESS = CHIP_BASE_ADDRESS def _...
by Peter247
Thu Jan 10, 2013 1:45 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Battery powered Pi with controlled shutdown at 4.75V ?
Replies: 14
Views: 2987

Re: Battery powered Pi with controlled shutdown at 4.75V ?

UPS ? , I don`t get the point of low voltage battery to high voltage mains to low voltage again.

But you do have a point about sensing the halt with a usb connection.
by Peter247
Wed Jan 09, 2013 11:19 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Battery powered Pi with controlled shutdown at 4.75V ?
Replies: 14
Views: 2987

Re: Battery powered Pi with controlled shutdown at 4.75V ?

I guess you could do it with a pair of resistors as a voltage divider connected to a gpio pin and find the point where it triggers , mmm , I guess like you could use a zener diode , but don`t know how to do it. it says it all in the name analogue 2 digital convertor . It converts a voltage to a digi...
by Peter247
Wed Jan 09, 2013 3:02 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Battery powered Pi with controlled shutdown at 4.75V ?
Replies: 14
Views: 2987

Re: Battery powered Pi with controlled shutdown at 4.75V ?

easy said than done. The problem is not sensing the voltage or just closing the pi diown , it`s knowing if it`s closed down or up and running . When in halt / closed down state it is still pulling current , so you can`t leave it in that state , you need to fulling pull the plug . So you need to work...

Go to advanced search