<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[REXYGEN Community Forum / HIL Simulation using SPI Digital POTS]]></title>
	<link rel="self" href="https://www.rexygen.com/oldforum/extern.php?action=feed&amp;tid=584&amp;type=atom"/>
	<link href="http://www.rexygen.com/oldforum/viewtopic.php?id=584"/>
	<updated>2019-03-07T15:10:50Z</updated>
	<generator>FluxBB</generator>
	<id>http://www.rexygen.com/oldforum/viewtopic.php?id=584</id>
	<entry>
		<title type="html"><![CDATA[Re: HIL Simulation using SPI Digital POTS]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=2257#p2257"/>
		<content type="html"><![CDATA[<p>Hi Mike,<br />you can use example 0501-01 (generic serial communication) or any of the 0401-xx examples on Modbus RTU communication. The USB RS485 adapter will appear as e.g. /dev/ttyUSB0, which you will use as the identifier of the serial bus.</p><p>I have the best experience with FTDI-based USB adapters. With other brands I sometimes had problems changing the baudrate.</p><p>Kind regards,<br />Jaroslav</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2019-03-07T15:10:50Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=2257#p2257</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: HIL Simulation using SPI Digital POTS]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=2256#p2256"/>
		<content type="html"><![CDATA[<p>I&#039;m just trying to confirm hardware for this project. As the Monarco uses the SPI and I2C I will have to use a plain RPi with no hat. Do you have an example of RS485 over USB for the RPi?</p><p>The RS485 will provide me with feed back as to what the hardware I&#039;m testing thinks it should be doing! i.e temperature, alarm and status feedback.</p><p>Thanks in advance</p><p>Mike</p>]]></content>
		<author>
			<name><![CDATA[mikeyh]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=60</uri>
		</author>
		<updated>2019-03-05T19:20:53Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=2256#p2256</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: HIL Simulation using SPI Digital POTS]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=2253#p2253"/>
		<content type="html"><![CDATA[<p>Hi Mike,<br />the <a href="https://datasheets.maximintegrated.com/en/ds/DS1844.pdf" rel="nofollow">DS1844</a> only has 64 positions. If resolution is the primary concern, the MCP series definitely fit beter.</p><p>Jaroslav</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2019-03-04T08:53:50Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=2253#p2253</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: HIL Simulation using SPI Digital POTS]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=2252#p2252"/>
		<content type="html"><![CDATA[<p>Hi Jaroslav,</p><p>Yes it will be an interesting project for sure. I only picked the MCP series due to having 8 bit and 256 steps. I do think the I2C of the DS1844 is worth considering though. I need good resolution to cover the NTC range I am trying to replicate, -27°C (100K) to +80°C (1.7K)</p><p>Cheers</p><p>Mike</p>]]></content>
		<author>
			<name><![CDATA[mikeyh]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=60</uri>
		</author>
		<updated>2019-03-04T08:38:16Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=2252#p2252</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[Re: HIL Simulation using SPI Digital POTS]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=2246#p2246"/>
		<content type="html"><![CDATA[<p>Hi Mike,<br />awesome project! </p><p>I have used DS1844, it has 4 channels and I2C bus. Have you considered it?</p><p>If you are forced to use the MCP414X/416X/424X/426X, it should work via REXLANG as you wrote. The 1-channel and 2-channel versions typically use the same communication, only with one additional byte for the 2-channel version. No complication at all, I dare to say.</p><p>Kind regards,<br />Jaroslav</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2019-03-01T13:52:32Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=2246#p2246</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[HIL Simulation using SPI Digital POTS]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=2244#p2244"/>
		<content type="html"><![CDATA[<p>Hi All,</p><p>I&#039;m going to do some HIL simulation on some hardware. Using REX I&#039;m going to run a model to feed back to the hardware I&#039;m testing. I need to use digital POTs as the hardware uses NTC probes for temperature measurements. The digital POTs have SPI so that means coding in REXLANG! </p><p>I&#039;m going to use the MCP414X/416X/424X/426X series of POTs, has anyone here had experience coding REXLANG for these? The added kicker is I need to use the dual POT chips as I need 4 analogue inputs and the RPI only has 2 SPI out pins. Could this complicate it?</p><p>Data sheet link for those interested, <a href="http://ww1.microchip.com/downloads/en/DeviceDoc/22059b.pdf" rel="nofollow">http://ww1.microchip.com/downloads/en/D … 22059b.pdf</a></p><p>Cheers</p><p>Mike</p>]]></content>
		<author>
			<name><![CDATA[mikeyh]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=60</uri>
		</author>
		<updated>2019-02-28T06:46:55Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=2244#p2244</id>
	</entry>
</feed>
