Page 1 of 1
Accel 2 click released
Posted: 28 Jul 2015 19:57
by srdjan.misic
accel 2 click released
Accel 2 click carries ST’s
LIS3DSH 3-axis accelerometer.
Let's zoom inside the LIS3DSH chip, Discovery-channel style. Inside it are these
microscopic suspended silicon structures that are attached to a substrate by a few
anchors, and are therefore free to move in the direction of acceleration. This causes an
imbalance in capaticance, and that’s how the chip digitally quantifies its own motion.
Those X, Y, Z values are communicated to the target board MCU either through
mikroBUS™
SPI or I2C interfaces. You determine which one it is by soldering the onboard jumpers in
the appropriate position.
But the LIS3DSH chip can do more. Having two state machines built-in, it can
send
interrupt signals when it recognizes user-defined motion patterns (shaking, double
shaking, turning upside down, thinks like that). Thus, it’s great for designing
motion-based user interfaces.
It also integrates a
FIFO buffer (firs in, first out), which means that the target
board MCU doesn’t have to constantly read data from the sensor in real time — thus
lowering power consumption.
Check out the details on the
product page. Also, the
Libstock example is ready.
Yours sincerely,
MikroElektronika
Re: Accel 2 click released
Posted: 29 Jul 2015 09:21
by MaGiK
This looks interesting! Definitely added to the to-buy list
Gotta be honest though, I hate those SMD jumpers
Ohhh ..., and the manual doesn't contain the power supply which this Click board works with
Best Regards
Re: Accel 2 click released
Posted: 29 Jul 2015 13:28
by srdjan.misic
We'll take note of that (about jumpers).
As for the power supply, well it is shown on the schematic. But good point, the sentence will be inserted.
Re: Accel 2 click released
Posted: 29 Jul 2015 14:30
by MaGiK
Hello
Srdjan
srdjan.misic wrote:We'll take note of that (about jumpers).
When I re-read my previous post, I think I might have sounded a bit hard, I apologize for that
It's just that my soldering skills isn't exactly great, and I sometimes screw up when I have to solder the two male headers that we get with each Click boards, let alone tiny SMD jumpers
srdjan.misic wrote:As for the power supply, well it is shown on the schematic. But good point, the sentence will be inserted.
I was just trying to help by finding these typos, as in my post in the link below:
http://www.mikroe.com/forum/viewtopic.p ... 84#p260384
As you can tell, I've got lots of free time these days, so please don't hesitate to ask for anything you think might help
MikroElektronika
Best Regards
Re: Accel 2 click released
Posted: 29 Jul 2015 17:07
by srdjan.misic
Hey, you keep us on our toes. Your feedback is always appreciated.
Re: Accel 2 click released
Posted: 30 Jul 2015 06:46
by MaGiK
Thanks for the kind words
Srdjan
And I just found a way to deal with these SMD jumpers, but it's a mysterious secret
Keep up the amazing work
Best Regards
Re: Accel 2 click released
Posted: 18 Aug 2015 21:23
by Rukario19
Hi i have one Accel 2 Click, i want help to test it, in the library they have test program working only in mikrobasik ARM, i tried to testit with a PIC18F45K22 in a board EasyPIC7, im trying to comunicate with the device and i cant get any anser, im using I2C1 Start at 40000 like the program in ARM. Could anyone please help me with this problem with a little library for get the values of LIS3DSH, i trying to get the value of WHO AM I and its like the program doesnt work.
Re: Accel 2 click released
Posted: 21 Aug 2015 10:24
by biljana.nedeljkovic
Hello,
can you attach the project in zipped file so we can test it?
What are the exact problems that you are experiencing, can you explain further what do you mean by "no answer"?
I suggest to go through debug, and detect what is causing the problem.
But if you attach your project I can help you with it.
Best regards,
Biljana
Re: Accel 2 click released
Posted: 26 Aug 2015 07:15
by Rukario19
biljana.nedeljkovic wrote:Hello,
can you attach the project in zipped file so we can test it?
What are the exact problems that you are experiencing, can you explain further what do you mean by "no answer"?
I suggest to go through debug, and detect what is causing the problem.
But if you attach your project I can help you with it.
Best regards,
Biljana
Well, i cant read values, for example, i tried to do a function that reads the ID of the device from the register WHO AM I, but i dont get any answer in the usart Terminal, in my easypic7 i have all the switch in middle posittion , except RC4 and RC3 that are used forI2C Comunication, i tried touse the debug but sincerely i dont understand how to use it. i will add you my code here, i hope that you can help me to find my error.
Thank you
Re: Accel 2 click released
Posted: 26 Aug 2015 15:59
by Rukario19
Rukario19 wrote:biljana.nedeljkovic wrote:Hello,
can you attach the project in zipped file so we can test it?
What are the exact problems that you are experiencing, can you explain further what do you mean by "no answer"?
I suggest to go through debug, and detect what is causing the problem.
But if you attach your project I can help you with it.
Best regards,
Biljana
Well, i cant read values, for example, i tried to do a function that reads the ID of the device from the register WHO AM I, i try to use the function that was made for amr and adapt it to 18f45k22 but i dont get any answer in the usart Terminal, in my easypic7 i have all the switch in middle posittion , except RC4 and RC3 that are used forI2C Comunication, i tried touse the debug but sincerely i dont understand how to use it. i will add you my code here, i hope that you can help me to find my error.
Thank you
Re: Accel 2 click released
Posted: 27 Aug 2015 15:23
by biljana.nedeljkovic
Hello,
are you sure you set the right I2C slave address?
I will try to translate this example code for PIC. You used the code for MPU IMU Click, but it needs to be modified.
Best regards,
Biljana
Re: Accel 2 click released
Posted: 27 Aug 2015 16:44
by Rukario19
biljana.nedeljkovic wrote:Hello,
are you sure you set the right I2C slave address?
I will try to translate this example code for PIC. You used the code for MPU IMU Click, but it needs to be modified.
Best regards,
Biljana
I used the MPU code for reference in order to use the I2C1, instead that has a Accelerometer and giroscope, and i Used the reference of the ACCEL2 program in order for gent te map registers, and salve address, i know that it needs to be modified, but in that program i only use read and write program, i'm beggining, im not using the other functions, i m working in it, if this code works i will let you know. I will be waiting the traslate of the example code for pic. Thanks for your help.
Re: Accel 2 click released
Posted: 30 Sep 2015 13:51
by biljana.nedeljkovic
Hello,
you can check the Libstock and example code from other user, if it can be helpful to you for the reference
http://www.libstock.com/projects/view/1531/accel2-click
Best regards
Re: Accel 2 click released
Posted: 18 Nov 2015 16:05
by Rukario19
Thank you, that program its mine jejeje i solve the problem a long time ago, thank you for your help