Go to advanced search

by dentex
Sat Jul 09, 2016 1:28 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using DHT22 & ds18b20 at the same time
Replies: 2
Views: 2935

Re: Using DHT22 & ds18b20 at the same time

Sorry to resume an old thread... But instead of opening new ones, I was using the search button... ;) you know... ... Can I connect more DHT22 sensors to the same wire, similar as ds18b20?... It seems that the answer is NO: quoting some vendor's details page, in regards to the DHT22 (I suppose with ...
by dentex
Sat Jul 09, 2016 12:45 pm
Forum: Automation, sensing and robotics
Topic: ds18b20 temperature probe's VDD
Replies: 5
Views: 970

Re: ds18b20 temperature probe VDD

And searching the forum more thoroughly, I found the same answer:
viewtopic.php?f=37&t=30359

Thanks again.
by dentex
Sat Jul 09, 2016 12:44 pm
Forum: Automation, sensing and robotics
Topic: DS18B20 5V external power with 3V3 dataline
Replies: 9
Views: 5326

Re: DS18B20 5V external power with 3V3 dataline

Hello!
I asked a similar (basically the same) question in another post and received the same answer... so I may be happy with that.
But just out of curiosity, did you ever use the sensor like this? I'm away from my stuff and I can't try myself until tomorrow :mrgreen:
by dentex
Sat Jul 09, 2016 11:50 am
Forum: Automation, sensing and robotics
Topic: ds18b20 temperature probe's VDD
Replies: 5
Views: 970

Re: ds18b20 temperature probe VDD

Many thanks guys. Understood. :)
by dentex
Sat Jul 09, 2016 10:31 am
Forum: Troubleshooting
Topic: DS18B20 reading high
Replies: 9
Views: 1553

Re: DS18B20 reading high

theweissguy wrote:Problem solved - wrong DS18B20 (PAR version) which only works in parasitic ("true" 1-wire) mode. All works now as it should.
Hello.
So are you using the probe in parasitic mode? If yes, could you kindly report some details for its wiring? Thanks!
by dentex
Sat Jul 09, 2016 8:00 am
Forum: Automation, sensing and robotics
Topic: ds18b20 temperature probe's VDD
Replies: 5
Views: 970

ds18b20 temperature probe's VDD

Hello!
I was wondering if I could use the Pi's 5V rail to power the DS18b20 temperature probe instead of the 3v3.

According to the datasheet
http://datasheets.maximintegrated.com/en/ds/DS18B20.pdf
this seems to be ok, but I was just looking for a confirmation:)

Thanks in advance.
by dentex
Thu Jul 07, 2016 3:07 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: TIP122 and LED strip, ON/OFF is OK, not PWM [SOLVED/WORKS]
Replies: 5
Views: 2117

Re: TIP122 and LED strip, ON/OFF is OK, not the PWM

Hello. Do you mean to connect a small 5mm LED with resistor with no external power, through the GPIO pin and use sevoblaster to dim it? As for the code, i.e. using the last GPIO pin, it's just: sudo servod --p1pins=40 --cycle-time=5000us --step-size=5us --min=5us --max 5000us sudo echo 0=50% > /dev/...
by dentex
Thu Jul 07, 2016 2:48 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: TIP122 and LED strip, ON/OFF is OK, not PWM [SOLVED/WORKS]
Replies: 5
Views: 2117

TIP122 and LED strip, ON/OFF is OK, not PWM [SOLVED/WORKS]

Hello guys, I connected a small LED strip (with 30 single LEDs, type 5630) as depicted below: TIP122_LED-strip.png I'm using 9V instead of 12, because the strip lights well anyway (and I'm actually using a TIP122 instead of the 120, because it's what I found). Exporting the GPIO pin as output and tr...
by dentex
Sat Jul 02, 2016 10:54 am
Forum: Automation, sensing and robotics
Topic: Help with Sainsmart relay
Replies: 20
Views: 20145

Re: Help with Sainsmart relay

Correction: ... the end result is more or less the same, and you would likely be fine directly driving it from the raspi. Hi, yes you're right, but probably the logic in doing this for many owners of this relay boards, is simply to invert the board's behavior from active low to active high, which m...
by dentex
Sat Jul 02, 2016 10:52 am
Forum: Automation, sensing and robotics
Topic: Help with Sainsmart relay
Replies: 20
Views: 20145

Re: Help with Sainsmart relay

Diode D3 could be shorted out, that or it must be the resistor R6 or the transistor Q3 as they are the only remaining potential faults. not the diode or you wouldn't be able to energise the relay by putting a voltage across it. I would suggest checking the resistance between leg 3 of the opto-isola...
by dentex
Wed Apr 27, 2016 11:51 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Advice on GPIO configuration
Replies: 2
Views: 756

Advice on GPIO configuration

Hello guys. If possible, I need an advice on how to configure the RPi to operate with this valve: http://www.aliexpress.com/item/3-way-DN15-reduce-port-motorized-ball-valve-electric-ball-valve-T-Port-motorized-valve-M8/32601858008.html It's a 3-way solenoid valve that will serve to deviate a water f...
by dentex
Sun Mar 27, 2016 7:38 am
Forum: Troubleshooting
Topic: Compile error
Replies: 2
Views: 988

Re: Compile error

Yes it was.
Thanks to Richard Hirst (who wrote ServoBlaster) I found with

Code: Select all

dpkg -S /usr/include/arm-linux-gnueabihf/asm/sigcontext.h 
that I had to reinstall the package linux-libc-dev.
So after

Code: Select all

sudo apt-get install --reinstall linux-libc-dev
all is good again.

Thanks for your answer.
by dentex
Sat Mar 26, 2016 7:31 pm
Forum: Troubleshooting
Topic: Compile error
Replies: 2
Views: 988

Compile error

Hello, today I tried to compile two different (although related) software for the Pi and got two similar errors. I was trying https://github.com/richardghirst/PiBits and https://github.com/sarfata/pi-blaster. I got the errors: gcc -Wall -g -O2 -o servod servod.c mailbox.c -lm In file included from /...
by dentex
Fri Feb 05, 2016 10:18 am
Forum: Python
Topic: hold push button code
Replies: 5
Views: 8494

Re: hold push button code

Well... OK.
For the "FALLING" version of this, you have to put the button between a GND pin and the GPIO pin...
While for the "RISING" version, the button sits between the 3v3 pin and the GPIO input pin.
by dentex
Thu Feb 04, 2016 4:57 pm
Forum: Python
Topic: hold push button code
Replies: 5
Views: 8494

Re: hold push button code

Hello, thanks for the code snippet, it gave me the opportunity to get started on this matter. I'm trying to do basically the same as the OP, but I needed to invert the logic, to make things happen. What I mean is: using GPIO.PUD_DOWN instead of UP setting up the pin, GPIO.RISING instead of FALLING a...
by dentex
Fri Jan 08, 2016 11:18 am
Forum: Troubleshooting
Topic: Transmission daemon doesn't start on boot
Replies: 4
Views: 5319

Re: Transmission daemon doesn't start on boot

malicious wrote:This workaround from the Arch Linux wiki may also help...]
transmission-daemon's script in /etc/init.d already has Required-Start: $network in its INIT INFO header.
The problem seems that the "network is up" notification by the system it's a bit buggy: https://trac.transmissionbt.com/ticket/5737
by dentex
Fri Jan 08, 2016 8:03 am
Forum: Troubleshooting
Topic: Transmission daemon doesn't start on boot
Replies: 4
Views: 5319

Re: Transmission daemon doesn't start on boot

Hi, just as a reference: https://forum.transmissionbt.com/viewtopic.php?f=2&t=17559&p=72605#p72605 and https://trac.transmissionbt.com/ticket/5737 If you want an awful fix (that anyway works), do: sudo nano /etc/init.d/transmission-daemon-reload Put inside: #!/bin/sh ### BEGIN INIT INFO # Provides: ...
by dentex
Wed Jan 06, 2016 6:50 pm
Forum: Troubleshooting
Topic: Single static IP address for eth0
Replies: 54
Views: 78815

Re: Single static IP address for eth0

Ok... to set both gateway and dns: Gateway (this will not survive a reboot - useful for tests): ~ $ sudo route add default gw 192.168.254.1 Change this address with your LAN gateway. Gateway ( persistent across reboots): ~ $ sudo nano /etc/dhcpcd.conf and add: interface eth0 static ip_address=192.16...
by dentex
Wed Jan 06, 2016 6:30 pm
Forum: Troubleshooting
Topic: Single static IP address for eth0
Replies: 54
Views: 78815

Re: Single static IP address for eth0

I would simply enter: [email protected]:~# ifconfig eth0 [Static IP] It works, but how to have internet access? The Pi is reachable within the LAN but has no network connection: ~ $ ping google.it ping: unknown host google.it ~ $ ping 216.58.208.195 connect: Network is unreachable Basically, how do ...
by dentex
Sun Aug 02, 2015 4:24 pm
Forum: Automation, sensing and robotics
Topic: 24V to 5V DC to DC conversion
Replies: 21
Views: 20847

Re: 24V to 5V DC to DC conversion

Hello.
Just as a follow up, to anyone may be interested: my aquarium controller project's Pi has been running for months now, out of this sequence made by the 24V/5A power supply -> the 12V step down converter -> down to the 5V output UBEC.
All is good and healthy, as the time being.

Cheers.
by dentex
Sat Aug 01, 2015 4:00 pm
Forum: Automation, sensing and robotics
Topic: Advise about PWM with LDD drivers
Replies: 9
Views: 3767

Re: Advise about PWM with LDD drivers

Hello.
Yes, all this stuff is working good.
If you want other details, please take a look at https://github.com/dentex/piac

Bye!
by dentex
Wed Jul 22, 2015 5:22 pm
Forum: Beginners
Topic: DS3231 hwclock not working right
Replies: 4
Views: 1329

Re: DS3231 hwclock not working right

I ran rpi-update after the issue, to have a new known working configuration for my DS1307.

I suspect that just an apt-get upgrade broke something.
by dentex
Wed Jul 22, 2015 5:07 pm
Forum: Beginners
Topic: DS3231 hwclock not working right
Replies: 4
Views: 1329

Re: DS3231 hwclock not working right

After a

Code: Select all

sudo rpi-update
and a reboot, it seems that in "/boot/config.txt"
you need

Code: Select all

dtoverlay=i2c-rtc,ds1307
instead of

Code: Select all

dtoverlay=ds1307-rtc
But please double check this.
by dentex
Wed Jul 22, 2015 4:21 pm
Forum: Beginners
Topic: DS3231 hwclock not working right
Replies: 4
Views: 1329

Re: DS3231 hwclock not working right

Same here.
It's a PITA, this stuff brakes every once in a while, after upgrading the RPi.
by dentex
Sun Feb 08, 2015 7:01 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Sainsmart 16x2 I2C lcd
Replies: 27
Views: 33556

Re: Sainsmart 16x2 I2C lcd

It appears as if the script in the box account has been deleted. I am still unable to get the quick2wire.i2c module to work. I have tried again and again without it working. I am not using the smbus, but should I be? Is there an advantage? If you have the same LCD/backpack, why don't you try the co...

Go to advanced search