Go to advanced search

by josar
Wed Apr 15, 2020 10:46 am
Forum: General discussion
Topic: ModBus
Replies: 9
Views: 1865

Re: ModBus

Hello,
I'm not able to help at the moment, sorry. Covid-related serious stuff. Try asking guys at REXYGEN forum, they really know how to make such things work. Always super helpful.

Take care everyone!
by josar
Sun Mar 22, 2020 3:17 pm
Forum: Automation, sensing and robotics
Topic: PLC Console RPi
Replies: 3
Views: 704

Re: PLC Console RPi

In general, yes it is.

What PLC are you using? If it has Ethernet port, it might be possible to read data from it with a plain Raspbery Pi.

If it has only RS485, then you'll need some HAT or USB converter to use the RS485 bus.

Still I wonder what PLC are you using.
by josar
Sun Mar 22, 2020 3:11 pm
Forum: Automation, sensing and robotics
Topic: Read 4-20mA industrial current loop sensor
Replies: 5
Views: 919

Re: Read 4-20mA industrial current loop sensor

Hello Rbert,
how about the Monarco HAT, https://www.monarco.io? Works like charm for my projects.

No need to fiddle with resistors or anything like that, you just connect the sensor. Power supply 10-30VDC is no problem, this is exactly what the HAT expects as input voltage.
by josar
Tue Apr 24, 2018 8:39 am
Forum: General discussion
Topic: ModBus
Replies: 9
Views: 1865

Re: ModBus

Hi,
yes exactly, now it's only about reading and writing registers using Modbus commands: Good luck with your project!
by josar
Thu Mar 29, 2018 8:14 am
Forum: General discussion
Topic: ModBus
Replies: 9
Views: 1865

Re: ModBus

Hi,
the Modbus registers table is in this document in Section 7.2.8:
http://pdb2.turck.de/repo/media/_au/Anlagen/d500064.pdf

First try to read e.g. Operating mode, i.e. registers 0xB000 (Channel 1) and 0xB012 (Channel 2).

Once you receive a valid Modbus TCP response, you are half-way through.
by josar
Fri Mar 09, 2018 6:17 am
Forum: General discussion
Topic: ModBus
Replies: 9
Views: 1865

Re: ModBus

I'm still here, I'll try to help. Feel free to provide full details:
  • Which Tben-S2 module are you using?
  • Do you have Modbus registers table?
  • Can you ping the device from your Raspberry Pi?
  • What language/framework are you planning to use?
by josar
Wed Aug 03, 2016 9:05 pm
Forum: Beginners
Topic: Getting a PLC to read data from a Raspberry Pi over Modbus
Replies: 2
Views: 2248

Re: Getting a PLC to read data from a Raspberry Pi over Modb

Check out REX for Raspberry Pi at https://www.rexcontrols.com/rex
You can turn your RasPi to a Modbus TCP slave so Micro850 can read data from it easily.
Example project here: https://github.com/rexcontrols/REXexamp ... a_Exchange
by josar
Fri Dec 04, 2015 11:32 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: OWFS and w1 not working after upgrade
Replies: 14
Views: 9830

Re: OWFS and w1 not working after upgrade

I just tested the whole procedure on Raspbian Wheezy and I can confirm that the patch no longer works :(

Any idea? Anyone?
by josar
Wed Sep 09, 2015 5:12 pm
Forum: Automation, sensing and robotics
Topic: Convert Existing Automatic Sliding Door to Operate with RPI
Replies: 32
Views: 3320

Re: Convert Existing Automatic Sliding Door to Operate with

What about the limit switches? What is their type and how are they wired? You might need to take care of them using the RPi. Do not forget safety - what if someone gets squashed? Is there any kind of people detector? Please provide more details to your project.
by josar
Mon Aug 17, 2015 7:34 pm
Forum: Automation, sensing and robotics
Topic: Communicating with Arduino? (sensors, servos)
Replies: 8
Views: 2082

Re: Communicating with Arduino? (sensors, servos)

I've never seen a 2hr evaluation before, doesn't sound very long to try something out. The 2-hour demo limit applies only to the running algorithm on your RasPi. You need to restart it afterwards. The development tools are completely free. Which means you can evaluate everything without buying anyt...
by josar
Fri Aug 14, 2015 4:01 pm
Forum: Automation, sensing and robotics
Topic: Communicating with Arduino? (sensors, servos)
Replies: 8
Views: 2082

Re: Communicating with Arduino? (sensors, servos)

A solution based on the REX Control System is also very nice for this purpose:
http://www.rexcontrols.com/articles/rex ... ts-arduino
by josar
Sun Jul 05, 2015 1:28 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: OWFS and w1 not working after upgrade
Replies: 14
Views: 9830

Re: OWFS and w1 not working after upgrade

You are my hero! Thanks a lot!
by josar
Fri Apr 10, 2015 7:40 am
Forum: Automation, sensing and robotics
Topic: Raspberry PI Based Modular HVAC/Home Automation Controller
Replies: 6
Views: 6207

Re: Raspberry PI Based Modular HVAC/Home Automation Control

You might be interested in the REX Control System for Raspberry Pi, which is a great tool for automation projects. See http://www.rexcontrols.com/articles/get ... spberry-pi for more information. I use it for controlling my central heating.
by josar
Sun Feb 22, 2015 11:06 pm
Forum: Raspberry Pi OS
Topic: OWFS vs Raspbian
Replies: 2
Views: 1259

Re: OWFS vs Raspbian

I have similar problems on my RPi. See details here:
http://www.raspberrypi.org/forums/viewt ... 68#p702468

Josef
by josar
Sun Feb 22, 2015 11:02 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: OWFS and w1 not working after upgrade
Replies: 14
Views: 9830

Re: OWFS and w1 not working after upgrade

After apt-get upgrade I am able to read the temperature with owread /28.1228EF040000/temperature12 Nevertheless, the owdir command runs for a minute and lists no sensors . That's strange. Here is the output of owserver running in debug mode while processing the owdir command (hope somebody can read ...
by josar
Sun Feb 08, 2015 10:49 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: OWFS and w1 not working after upgrade
Replies: 14
Views: 9830

Re: OWFS and w1 not working after upgrade

Thanks for the reply, but I have already studied the proposed post. As I have stated, I am able to read the temperatures via /sys/bus/w1/devices/28-00000559012c/w1_slave but I am not able to read them via OWFS (owserver), which is the problem I am trying to solve.
by josar
Fri Feb 06, 2015 7:11 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: OWFS and w1 not working after upgrade
Replies: 14
Views: 9830

Re: OWFS and w1 not working after upgrade

Update: upgrading OWFS to 3.0p0 did not help, still the same... :(
by josar
Thu Feb 05, 2015 3:17 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: OWFS and w1 not working after upgrade
Replies: 14
Views: 9830

OWFS and w1 not working after upgrade

With the new firmware and Device Tree for hardware configuration I am not able to make owserver (OWFS) work with w1 kernel module. Prior to upgrade everything worked like charm. I have added dtoverlay=w1-gpio,gpiopin=4 to /boot/config.txt and rebooted. The w1_therm and w1-gpio modules are loaded and...
by josar
Sat Dec 27, 2014 2:46 pm
Forum: Automation, sensing and robotics
Topic: Sensor research project - Willing to pay for some help
Replies: 12
Views: 2317

Re: Sensor research project - Willing to pay for some help

Since you were using Arduino I'd recommend combining it with the Raspberry Pi. These two are really great together, see http://www.rexcontrols.com/articles/rex-on-raspberry-pi-meets-arduino I am using REX on Raspberry Pi and Arduino for controlling my central heating (incl. heat pump and gas boiler)...
by josar
Sat Aug 30, 2014 7:00 pm
Forum: Automation, sensing and robotics
Topic: Help selecting relay to switch 110V power from Pi
Replies: 5
Views: 7648

Re: Help selecting relay to switch 110V power from Pi

1) There is no need to use SSR for such an infrequent switching. Mechanical relays are much less expensive. 2) The Sainsmart board you mentioned works directly with RPi. 6) No, just have a look at the wiring displayed at the Sainsmart product page. Works like charm. Notice that you may find the same...
by josar
Fri Aug 29, 2014 11:46 am
Forum: Automation, sensing and robotics
Topic: Thermostat controller for air exchange
Replies: 2
Views: 1159

Re: Thermostat controller for air exchange

Check out this tutorial: http://www.rexcontrols.com/articles/raspberry-pi-as-a-plc-pool-automation-project Don't worry that it's focused on pool automation, the principles are the same no matter what you hook up to the relay board (a fan in your case). DS18B20 1-Wire temperature sensors can be inclu...
by josar
Fri Jul 11, 2014 11:02 pm
Forum: Automation, sensing and robotics
Topic: Read and historize PLC data
Replies: 8
Views: 12220

Re: Read and historize PLC data

Most of the PLCs support the Modbus protocol (TCP or RTU). I would go that way for reading data from a PLC.

Once you have the data in your RPi, storing them in a MySQL DB should not be a problem, just google "raspberry pi mysql".
by josar
Sat Jun 07, 2014 8:01 pm
Forum: General discussion
Topic: raspberry pi and modbus rtu
Replies: 8
Views: 45165

Re: raspberry pi and modbus rtu

If you can set the two devices to different addresses, you only need one RS485 network. Yes, exactly. Set each device a different address (Endereço), get a USB to RS485 converter and that's all you need. Search "USB to RS 485" on ebay, you will get e.g. http://www.ebay.com/itm/New-USB-to-...

Go to advanced search