Re: [Machinekit] Re: MLX IR Temperature Sensor HAL Component

2019-02-24 Thread Charles Steinkuehler
There's no hard and fast rule about what to do with hal components.

I just put the files on github because I don't really expect a lot of
people running Machinekit to need to talk to one of these sensors.  If
for some reason it does catch on and become popular, the comp file can
be easily merged into Machinekit.

If anyone does have a HAL component they'd like to share, just add it
to user_comps and send a PR:

https://github.com/machinekit/machinekit/tree/master/src/hal/user_comps


On 2/24/2019 1:08 PM, c...@tuta.io wrote:
> Hi,
> 
> what's the default for creating new HAL components? Some people merge it to 
> the Machinekit master, some just have it sit in public repository on 
> Github. I guess that I understand the reasoning behind both reasonings. 
> This way does not mess the master with one off components, but merging it 
> to the master means that it is readily accessible and easy to find.
> 
> Thanks
> Cern.
> 
> Dne neděle 24. února 2019 18:05:23 UTC+1 Charles Steinkuehler napsal(a):
>>
>> In case it's useful to anyone else: 
>>
>> I have written a simple HAL component to interface to an MLX90621 
>> temperature sensor.  This part measures the ambient temperature of the 
>> part itself, and provides a 4x16 pixel array of IR temperature 
>> sensors.  The code is mostly from a project for the Rpi, modified 
>> first to use the standard Linux I2C infrastructure (the Rpi version 
>> talks directly to the Broadcom hardware) and then to function as a HAL 
>> component. 
>>
>> Currently the component only outputs two values, the ambient 
>> temperature and an average of all 64 IR values for the remote 
>> temperature.  I may add ring buffer support to be able get all the 
>> pixel values at once, but currently all I need is the average. 
>>
>> Source is on github: 
>> https://github.com/cdsteinkuehler/mlxd/tree/halcomp 
>>
>>
>> Tested with the MLX90621 on a BeagleBone, but it should work with the 
>> MLX90620 (edit the #define in the source) and any system with a 
>> standard Linux I2C bus available (eg: /dev/i2c0). 
>>
>> -- 
>> Charles Steinkuehler 
>> cha...@steinkuehler.net  
>>
> 


-- 
Charles Steinkuehler
char...@steinkuehler.net

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.


[Machinekit] Re: MLX IR Temperature Sensor HAL Component

2019-02-24 Thread cern
Hi,

what's the default for creating new HAL components? Some people merge it to 
the Machinekit master, some just have it sit in public repository on 
Github. I guess that I understand the reasoning behind both reasonings. 
This way does not mess the master with one off components, but merging it 
to the master means that it is readily accessible and easy to find.

Thanks
Cern.

Dne neděle 24. února 2019 18:05:23 UTC+1 Charles Steinkuehler napsal(a):
>
> In case it's useful to anyone else: 
>
> I have written a simple HAL component to interface to an MLX90621 
> temperature sensor.  This part measures the ambient temperature of the 
> part itself, and provides a 4x16 pixel array of IR temperature 
> sensors.  The code is mostly from a project for the Rpi, modified 
> first to use the standard Linux I2C infrastructure (the Rpi version 
> talks directly to the Broadcom hardware) and then to function as a HAL 
> component. 
>
> Currently the component only outputs two values, the ambient 
> temperature and an average of all 64 IR values for the remote 
> temperature.  I may add ring buffer support to be able get all the 
> pixel values at once, but currently all I need is the average. 
>
> Source is on github: 
> https://github.com/cdsteinkuehler/mlxd/tree/halcomp 
>
>
> Tested with the MLX90621 on a BeagleBone, but it should work with the 
> MLX90620 (edit the #define in the source) and any system with a 
> standard Linux I2C bus available (eg: /dev/i2c0). 
>
> -- 
> Charles Steinkuehler 
> cha...@steinkuehler.net  
>

-- 
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- 
You received this message because you are subscribed to the Google Groups 
"Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to machinekit+unsubscr...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.