Pages

Tampilkan postingan dengan label mcus. Tampilkan semua postingan
Tampilkan postingan dengan label mcus. Tampilkan semua postingan

Kamis, 21 April 2016

Saving Sensor Data With MCUs And microSD Cards

microSD card with adapter
If your microcontroller (MCU) project has sensors collecting data, you may want to save that data in addition to, or instead of, controlling with the data or displaying it on an LCD screen.

One way to save data generated by sensors on an MCU project is to use a microSD card. The microSD card (SD means Secure Digital) is a relatively compact and inexpensive way to store digital information. The microSD card is 15 x 11 x 1 mm, and an 8GB Class 10 microSD card can easily be found for $5 to $10 as of June 2014 in the US. Many smartphones or other mobile computing devices use microSD cards for expanding the memory capacity of the devices.
SparkFun microSD Shield

Today well take a brief look at the relatively easy approach to saving MCU project data -- using a microSD card add-on for an Arduino. If you go the microSD addon for Arduino route, there are likely less expensive options, but the two safest ways I know of for an inexperienced MCU person is to go with the SparkFun microSD Shield ($14.95) and their microSD Shield Quickstart Guide or use the Adafruit microSD breakout board ($14.95) and their microSD breakout board tutorial. Ed Smith has experience with the Texas Instruments LaunchPad MCU board, so maybe he can do a future post about microSD BoosterPacks, and whether that data storage approach is significantly less expensive or easier to hook up and program.

I havent used either the SparkFun or the Adafruit microSD add-on component, so this is the voice of research, not the voice of hands-on experience. After I build a data-gathering MCU project, like a gardening project that measures soil moisture or light, I plan to use one of the microSD card approaches to save the data from the sensors. At that point Ill write another blog post to discuss the process to hook up the microSD reader to the other electronics and highlight any issues I run into with the microSD add-on.
Adafruit microSD breakout board

The Adafruit microSD breakout board may have advantages, such as smaller board size, compared to the SparkFun microSD Shield, but if the other project components can accomodate the Shield, the inexperienced MCU project builder might be better off with the Shield because its a more straightforward approach. Compare the SparkFun Shield picture, above left, to the Adafruit breakout board and breadboard approach, shown to the right. If your project is going to have other components that youll need the breadboard for anyway, the Adafruit approach might be nice so you have better visibility for jumpering parts together and observing the operation of the Arduino once youve got the entire project connected. Only the hands-on experience following the tutorials for the SparkFun or Adafruit microSD card modules will show whether one approach is easier to get operating or more reliable once your project is actually being used for its intended purpose.

Another approach to using microSD cards with MCUs is to make your own circuit board and buy the MCU itself and a microSD card reader. Ill cover that approach in the future after we start designing circuit boards and getting them fabbed. And Ill also need to do a bunch more research about interfacing the MCU and microSD card reader.

To give readers of this blog a better perspective on using microSD cards with MCUs, or other ways to save MCU project sensor data, I will try to get one or several posts written by people whove successfully built projects that saved the sensor data. If youve done that and are willing to write a post about it, please contact me via email at arcatabob (at) gmail {dott} com. Thanks!

**********
Read More..

Sabtu, 19 Maret 2016

Microcontrollers Libraries More Than Just Reading About MCUs

Libraries are places where people in a community go for information.

Some libraries are starting to provide more information about microcontrollers (MCUs) than just books for you to check out and take home with you to read. Around the USA, libraries in cities large and small are starting to offer hands on classes that involve working with MCUs, most often Arduinos.

Doing a search on Google News for libraries currently offering classes or workshop activities involving MCUs turned up eight libraries who recently had an article or a blurb about those MCU activities. The Allen County Public Library in Fort Wayne, IN, has maker spaces at two of its libraries and the May 25 article about them mentioned an Arduino class, as well as two robotics classes and a circuit board class that likely involve MCUs. The Allen County Public Library got involved with MCUs and the maker movement with a mobile maker space a few years ago:
"The library has also had a partnership with TekVenture, a non-profit Fort Wayne company. TekVenture’s Maker Station mobile laboratory was moved to the library’s lot at Washington and Webster streets three years ago, where the staff provided laboratories and workshops for library employees and patrons. Georgetown is still in the process of growing a crop of makers, Georgetown Branch Manager Lisa Armato said. “Thus far, people are mostly just taking classes and then afterward some come to practice...Another boy, who was an avid gamer, designed and made 3-D copies of a device that attached to a smart phone and to free up the player’s fingers for easier game playing on the phone’s screen. “He printed off his design for $3, took them to school and sold them to his gaming friends for $10,” Gregg said...“Everyone is very excited about all the new learning opportunities,” Armato said. “All of our classes are filling up, and we have waiting lists for some. We are seeing all ages, from 9-year-olds to senior citizens, learning side by side,” she said."
Other libraries have smaller budgets or are just starting to get involved with MCUs via introductory classes. Two libraries currently in the news who are also offering Arduino classes are the Westport Library in Connecticut and the Mead Public Library in Sheboygan, Wisconsin. The May 15 article about the Westport Library says:
"A workshop on how to use the Arduino board, a small programmable microcontroller board, will be taught in a six-session workshop at the Westport Library...The Arduino board is an open-source electronics platform used for robotics, and all kinds of other projects...The sessions are for anyone with an interest in electronic circuits and the ability to learn coding. Each session will focus on a new problem...participants who have an Arduino kit should bring it. There will also be kits for use provided by the library. The workshop will be using the Sparkfun Inventors Kit for the class, which is available at for purchase..."
The May 19 Sheboygan article says:
"“Wanna race?” 14-year-old Christian Henke asked as he elbowed his dad, Andreas, at the Mead Public Library on Saturday. The father and son had just sat down to try their hand at building their own self-driving robot car at the Sheboygan Connects activity day at the library...The simple robotic vehicle, which Christian and father worked on, had two large wheels and a rear caster. At the front of a robot, two sensors turned 180 degrees on a servo to determine which course was the least obstructed...The robot was controlled by an Arduino circuit board, a simple programmable electronic prototyping platform..."
The first step towards having libraries offer classes with Arduino or other MCUs is for local makers to talk to their librarians and offer to explain more about the small computing components and why the library might want to consider offering some classes or workshops with them (often with the local makers developing and leading the classes or workshops).

**********
Read More..