Libraries MEMS STM32F30x

This forum is about you. Feel free to discuss anything is related to embedded and electronics, your awesome projects, your ideas, your announcements, not necessarily related to ChibiOS but to embedded in general. This forum is NOT for support.
User avatar
Tectu
Posts: 1226
Joined: Thu May 10, 2012 9:50 am
Location: Switzerland
Contact:

Re: Libraries MEMS STM32F30x

Postby Tectu » Wed Jun 19, 2013 4:31 am

I don't really have any application - it's just to create demos. People seem to love things that move around when they actually move it around them self :D (Remember the first time smartphone had accelerometers, and all the people went to the store just to let the ball bounce around).

I'm not sure what your examples do either, maybe it's really just a matter of figuring out how to render some 3D object on the screen.


~ Tectu

User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Location: Munich (Germany)
Has thanked: 83 times
Been thanked: 67 times
Contact:

Re: Libraries MEMS STM32F30x

Postby RoccoMarco » Wed Jun 19, 2013 9:54 am

I like to think that my stupid work could be a powerful instrument for a bigger work. My examples show just a simple use of new function set. They init the mems, calibrate them and retrieve data cleaned from every kind of disturbance. All with 3 or 4 code lines, so who want to create complex applications doesn't have to solve statistical and mathematical problems:

Code: Select all

  spiAcquireBus(&SPID1);
  spiStart(&SPID1, &spicfg);
  i2cAcquireBus (&I2CD1);
  i2cStart(&I2CD1, &i2ccfg);



  l3gd20Init(&SPID1, VALUES_CTRL_REGS_G);
  l3gd20Calibrate(&SPID1);
  lsm303dlhcAccInit(&I2CD1, VALUES_CTRL_REGS_A,
                                     &msg_init);
  lsm303dlhcAccCalibrate(&I2CD1, &msg_cal);
  while (TRUE){
    palTogglePad(GPIOE, GPIOE_LED7_GREEN);
    l3gd20RetrieveFilteredData(&SPID1, gyrodata);
    lsm303dlhcAccRetrieveFilteredData(&I2CD1, &msg_ret_data_acc,
                                      acceldata);
    chThdSleepMilliseconds(250);
  }
  spiStop(&SPID1);
  spiReleaseBus (&SPID1);
  i2cStop(&I2CD1);
  i2cReleaseBus (&I2CD1);

User avatar
Tectu
Posts: 1226
Joined: Thu May 10, 2012 9:50 am
Location: Switzerland
Contact:

Re: Libraries MEMS STM32F30x

Postby Tectu » Wed Jun 19, 2013 10:02 am

They init the mems, calibrate them and retrieve data cleaned from every kind of disturbance

That is exactly what I want and nothing more :)


~ Tectu

User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Location: Munich (Germany)
Has thanked: 83 times
Been thanked: 67 times
Contact:

Re: Libraries MEMS STM32F30x

Postby RoccoMarco » Wed Jun 19, 2013 10:13 am

...so you will appreciate full support for magnetometer :mrgreen:

Kind regards
Rocco Marco

User avatar
Tectu
Posts: 1226
Joined: Thu May 10, 2012 9:50 am
Location: Switzerland
Contact:

Re: Libraries MEMS STM32F30x

Postby Tectu » Wed Jun 19, 2013 10:20 am

That for sure. But as I said, I have no real world application, it should just become a demo at some point. Maybe you're interested in getting an LCD and fire ChibiOS/GFX up to make a demo of that? You seem to be quite interested in that motion stuff :)


~ Tectu

User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Location: Munich (Germany)
Has thanked: 83 times
Been thanked: 67 times
Contact:

Re: Libraries MEMS STM32F30x

Postby RoccoMarco » Wed Jun 19, 2013 12:50 pm

There would be no problem to start to use ChibiOS/GFX and create some amazing demo. Just pvt me about where to buy a proper lcd. I'll buy. But probably I'll need a little help to start, as always when someone starts a new thing...

User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Location: Munich (Germany)
Has thanked: 83 times
Been thanked: 67 times
Contact:

Re: Libraries MEMS STM32F30x

Postby RoccoMarco » Wed Jun 19, 2013 12:57 pm

It's been almost two months since I started using ChibiOS under the careful supervision of Giovanni. It's an amazing new world. So, I'm not an expert but I would continue to explore it and hopefully to become smarter. :mrgreen:

User avatar
Tectu
Posts: 1226
Joined: Thu May 10, 2012 9:50 am
Location: Switzerland
Contact:

Re: Libraries MEMS STM32F30x

Postby Tectu » Wed Jun 19, 2013 1:09 pm

This one is a very very popular 3.5" 240x320 TFT touchscreen. Both the drivers, for the actual LCD panel and the touchscreen are included in ChibiOS/GFX since a long time.

You will get the help you need ;-)


~ Tectu

User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Location: Munich (Germany)
Has thanked: 83 times
Been thanked: 67 times
Contact:

Re: Libraries MEMS STM32F30x

Postby RoccoMarco » Wed Jun 19, 2013 1:25 pm

Do you suggest to buy it from ebay?
need anything else to connect the LCD to the board?

User avatar
Tectu
Posts: 1226
Joined: Thu May 10, 2012 9:50 am
Location: Switzerland
Contact:

Re: Libraries MEMS STM32F30x

Postby Tectu » Wed Jun 19, 2013 1:52 pm

It depends on your location. If it takes four weeks for you to receive this e-bay stuff, you might get it from an actual distributor.

You don't need anything but a bunch of wires to connect that LCD module to your discovery board. You might want to get one of those matrix prototyping board and solder the required pin headers on it to make the connections.


~ Tectu


Return to “User Projects”

Who is online

Users browsing this forum: No registered users and 49 guests