CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Mon Aug 21, 2017 2:51 pm

All times are UTC+01:00




Post new topic  This topic is locked, you cannot edit posts or make further replies.  [ 17 posts ]  Go to page Previous 1 2
Author Message
PostPosted: Sun May 28, 2017 6:23 am 
Offline

Joined: Wed Jan 16, 2013 8:35 am
Posts: 90
Author: Dag H. Hanssen
Date: 09.05.2017

Here is a library I made for the device LSM9DS1, an Accelerometer/Gyro/Magnetometer form ST life.augmented, on a break-out board from Adafruit. (I had to zip the library-file since the size was more than 500kB, which is maximum upload file-size for this forum.)

The device has actually two slaves, but I chose to integrate them both with on device-description. It doesn't matter if the user assigns a slave address in the project, the code in the library alters anyway between two different slave-addresses when writing/reading data.

Though the device has built-in FIFO-registers, for faster and less time-/power-consuming readouts, I have not used this option in this version of the library. Instead, the readout is timer-controlled, with a user-specified read-rate.

I have also uploaded a very simple test-project.

Hope someone finds the library useful,
Dag Hansa


You do not have the required permissions to view the files attached to this post.


Top
   
 
PostPosted: Sun May 28, 2017 6:31 am 
Offline

Joined: Wed Jan 16, 2013 8:35 am
Posts: 90
Autor: raymondclark0
Date: 09.05. 2017
Version: 1.1.0.0

My Library for the ST LSM303 accel magnetometer board avaliable from Adafruit.

Separate device files, but combined library.

Attached is an example project too.

Thanks,
Ray.


You do not have the required permissions to view the files attached to this post.


Top
   
 
Display posts from previous:  Sort by  
Post new topic  This topic is locked, you cannot edit posts or make further replies.  [ 17 posts ]  Go to page Previous 1 2

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited