Go to advanced search

by vilis
Sat Jul 09, 2016 7:27 pm
Forum: Troubleshooting
Topic: Raspberry PI 2 and a relay
Replies: 3
Views: 1461

Re: Raspberry PI 2 and a relay

Thanks gordon77! I tried to use contact 1 (3.3V) insted of 2 (5V) and ... ta-dah! I'm able to control a relay. The commands differ from the original one: echo 1 > /sys/class/gpio/gpio21/value (disconnects the relay) and echo 0 > /sys/class/gpio/gpio21/value (connects the relay). So easy with your he...
by vilis
Sat Jul 09, 2016 7:11 pm
Forum: Troubleshooting
Topic: Raspberry PI 2 and a relay
Replies: 3
Views: 1461

Raspberry PI 2 and a relay

I have Raspberry PI 2 model B board with Raspbian 2016-05-27 on it. It would like to control a relay SRD-05VDC-SL-C. The relay is connected VCC - contact 2 (5V) GND - contact 4 (ground) INC - contact 40 (GPIO21) NO and COM connected to a desk lamp. I tried following steps: echo 21 > /sys/class/gpio/...
by vilis
Thu Jul 23, 2015 7:10 pm
Forum: General discussion
Topic: Dependable barcode reader
Replies: 1
Views: 653

Dependable barcode reader

Hello!

My current project needs a bar code reader device connected to Raspberry Pi 2.
Could someone suggest a dependable device with bar code reader capabilities?
Please give suggestions based on real experience.

Thanks in advance!
by vilis
Sun Apr 19, 2015 8:50 am
Forum: Automation, sensing and robotics
Topic: More than one DS18B20 sensor
Replies: 5
Views: 1263

Re: More than one DS18B20 sensor

1-wire is a bus system. You can connect multiple devices to the same gpio. Thanks joan for explanation, but this is not what I need. May be I didn't describe well enough. I was requesting how to recognize from the w1_slave data which GPio was used for the sensor reading. For instance: there are 2 s...
by vilis
Thu Apr 16, 2015 7:01 pm
Forum: Automation, sensing and robotics
Topic: More than one DS18B20 sensor
Replies: 5
Views: 1263

More than one DS18B20 sensor

Hi everyone, right now I'm developing some code using the sensor DS18B20. I know only one way to get the value of temperature - to read the file /sys/bus/w1/devices/28-00000xxxxxx/w1_slave. It's something like: a2 01 4b 46 7f ff 0e 10 d8 : crc=d8 YES a2 01 4b 46 7f ff 0e 10 d8 t=26125 where string a...
by vilis
Thu Apr 09, 2015 3:50 pm
Forum: Networking and servers
Topic: Help please with Hotspot settings
Replies: 2
Views: 505

Re: Help please with Hotspot settings

When I used that, I realized DHCP wasn't working because isc-dhcp-server (or something like that) has the wrong config or something like that. You can either use static or spend up a day getting DHCP working. I always use that tutorial, but I usually don't fiddle with DHCP. Thanks a lot kusti8 for ...
by vilis
Wed Apr 08, 2015 5:21 pm
Forum: Networking and servers
Topic: Help please with Hotspot settings
Replies: 2
Views: 505

Help please with Hotspot settings

Hi, I'm trying to set my Raspberry Pi to a separate box with Wi-Fi access. I would be very happy if I could get a small box which can be access by any device with Wi-Fi capabilities with ssh, vncviewer. I used the manual (http://raspberry-at-home.com/hotspot-wifi-access-point/) and at the end I got ...

Go to advanced search