On Monday 11 November 2013 11:47:38 Juergen Gnoss did opine:

> Thanks Gene for pointing me to some stuff that goes into the right
> direction.
> 
> Regarding the sensors, I've tried to figure out what's the best solution
> for reading some sort of sensors. Best, and most flexible solution is
> interfacing the sensors using sensors with I2C interface or connect
> them to a microcontroller and feed data into PC using I2C.
> I think, I2C will do for most sensors, because reading speed is not that
> high and linux supports quiet a good speed in reading I2C.
> Another point is, if you own a graphic card with DVI connector, I2C is
> accessible using some Pins on that connector, no additional hardware is
> required.

I was not aware of that. And because we are often pin limited for the low 
cost (I'm on SS here inn the states) end of things, some documentation 
pages should be started in the wiki so such info doesn't get lost.  ATM, 
I'm running on a couple D525MW kits, and I don't even know if those boards 
have a DVI output.  And ATM I am short a pair of trousers, shoes, a hat and 
jacket, and 100 crippled feet (I tore up a knee about 6 weeks back) across 
the back yard to either of my machines. :(  I am a retired broadcast 
engineer, and probably the old man on this list as my next birthday will be 
my 80th.

> SPI in contrast will require some more effort to get it
> working that way.

What little I know about SPI isn't enough to say more than I've heard of 
it.

> So it's possible to integrate whatever sensor direct into linux device
> tree. (No additional Parport pin or other pin is needed)
> Sensor Data are accessible simply by reading a file in user space.
> 
If the correct driver has been written I assume.

> Right now, I have a PandaBoard, a BeagleBone and a PC running all the
> same flower of reading sensors. The work now is, making the data
> available to linuxcnc in a configurable way.

I wonder if that might be handled all in memory by just exporting the data 
by NAME when it has been updated, and reading it in linuxcnc with the usual 
$NAME syntax used for other env vars?

Great!
 
> Ju

Cheers, Gene
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)

"The four building blocks of the universe are fire, water, gravel and 
vinyl."
                -- Dave Barry
A pen in the hand of this president is far more
dangerous than 200 million guns in the hands of
         law-abiding citizens.

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to