Tampilkan postingan dengan label use. Tampilkan semua postingan
Tampilkan postingan dengan label use. Tampilkan semua postingan

A Good Humboldt Use For Arduino Gardening

| 0 komentar |
So yesterday I said Id write a bit about Arduino, a currently popular type of microcontroller, or single board microcontroller.

Arduino is an open source hardware project that was started in Italy and has spread around the world in the past several years.

If you search on Google for Arduino projects, youll get more than ten million hits. Arduino microcontroller boards are being used for just about anything and everything that people can think of. And one of those things is gardening.

There are projects like Growduino, Garduino (which has been superseded by growerbot), and the Horto Domi Kickstarter project.

In the Humboldt Microcontrollers community activities, one of the projects I plan to work on is some type of application for Arduino in the garden. A recent post at Cooking Hacks was about the launch of their Open Garden Project. The post says:
"...there is a lot of interest in urban or terraces vertical gardens that allow grow vegetables in the city centers controlling firsthand the level of fertilizer used. This week, we are happy to announce our newest product: Open Garden. We put our knowledge of electronics and sensors at the service of gardening and hydroponics, trying to help all of you interested in gardening and plants. Open Garden is a platform for garden control using sensors oriented both exterior and interior gardening or even hydroponic farming. The aim of the platform is to measure parameters such as Soil moisture (Indoor & Outdoor kits), Water sensors: pH, Conductivity, Temperature (Hydroponics kit), and Temperature, Humidity and Light (All kits)...Open Garden programming has been developed as Open Source so that users can access the source code to customize and adapt to their needs..."
Well probably discuss some Arduino gardening applications at the May 15 meeting, so if youre interested in either automated gardening or the video tutorials about the basics of Arduino, come to The Link at 1385 8th Street, Arcata, CA, USA, from 6 to 8 PM on Thursday, May 15.

Hope to see you at The Link! If you have questions about the Humboldt Microcontrollers community, send me (Bob Waldron) an email at arcatabob (at) gmail [dott] com.

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

Power Sipping Microcontrollers Use FRAM

| 0 komentar |
Emerging technologies and new tech terms are something of high interest to me, so when I saw a couple recent articles about microcontrollers with FRAM, I needed to know more.

FRAM (also written as FeRAM), or ferroelectric random-access memory, is defined by Wikipedia as,
FRAM Cell
"...similar in construction to DRAM but uses a ferroelectric layer instead of a dielectric layer to achieve non-volatility. FeRAM is one of a growing number of alternative non-volatile random-access memory technologies that offer the same functionality as flash memory. FeRAM advantages over flash include: lower power usage, faster write performance and a much greater maximum number of write-erase cycles (exceeding 1016 for 3.3 V devices). Disadvantages of FeRAM are much lower storage densities than flash devices, storage capacity limitations, and higher cost."
The article titled "Comprehensive Ultra-Low Power FRAM Microcontroller Platform from Texas Instruments" looks a bit like it came directly out of the marketing department rather than the engineering department. Although I guess most, if not all, press releases are generated by marketing departments, so the wording shouldnt really surprise me. The numbers in the article may not be incorrect, but they sure are presented in a hard-to-believe so-much-better-than-the-previous-model way. The article says,
"Texas Instruments (TI) today announced its comprehensive ultra-low power FRAM microcontroller (MCU) platform with all the necessary hardware and software

tools...to reduce energy budgets, minimize product size and enable a battery-free world. TIs new MSP430FR59x/69x FRAM MCU families...range from 32 to 128 KB embedded FRAM. These MSP430™ MCUs are ideal for smart utility metering, wearable electronics, industrial and remote sensors, energy harvesting, home automation, data acquisition systems, the Internet of Things (IoT)...ultra-low-leakage (ULL) proprietary technology with embedded FRAM delivers the worlds lowest system power with active power of 100 uA/MHz, accurate-RTC standby power of 450 nA...and an enhanced scan interface for flow metering that can operate while the system is in standby, resulting in 10 times lower power...FRAM is the only non-volatile embedded memory that can be written at 8MBps in under 800uA – more than 100 times faster than flash
."
The new MCUs sound like the definition of innovation -- "a battery-free world," "worlds lowest system power," "10 times lower power" and "more than 100 times faster." If those terms are relevant and delivered on a cost-competitive basis relative to alternative components, there are definitely applications where it would be worthwhile to evaluate the IT FRAM microcontrollers. The Wikipedia article explains some aspects of the FRAM advantages,
"Flash works by pushing electrons across a high-quality insulating barrier where they get "stuck" on one terminal of a transistor. This process requires high voltages, which are built up in a charge pump over time. This means that FeRAM could be expected to be lower power than flash, at least for writing, as the write power in FeRAM is only marginally higher than reading...Flash memories commonly need a millisecond or more to complete a write, whereas current FeRAMs may complete a write in less than 150 ns."
 To benefit from the FRAM, MCU-system designers will have to focus on where the FRAM advantages over competing memory forms will pay big benefits. Two use cases that seem like the best candidates are energy-harvesting and remote sensors.

If you had some sample Texas Instruments FRAM MCUs, what would you use them for?

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

Free Stuff!! Convincing People To Use New Products

| 0 komentar |
A recent news release aimed at the microcontroller and Internet of Things communities got me thinking about ways to participate on the leading edge of an emerging technology.

When someone develops a new product, they often need to also develop a market for that product. When that new product becomes available, people who might use it usually are busy with life and are not looking for and waiting for that new product to be released. Getting people to use the new product takes more than just making it available. If the new product is revolutionary, has immediately obvious benefits and is priced reasonably, the developer of the product need only do a good job of communicating to the target audience what the product does and how they can get the product. Then the money comes pouring in. That sometimes happens, like with the iPod, but its rarely the situation.

If the product is evolutionary instead of revolutionary, if the benefits are not immediately obvious, or if it is priced high enough that people decide theyll do without or keep using a competitive alternative, the developer of the product must work much harder to get people to use or buy the new item. Some ways to engage potential users are:
  1. Provide free samples of the new product.
  2. Provide the new product at a very low introductory price.
  3. Provide services, for free or very low cost, that will help potential users understand the benefits of the new product and will help minimize the time and cost for them to begin using the new item effectively.
The news release I mentioned at the start of this post was about the Bluetook Smart Starter Kit, a free training package to,
"...walk developers through building a Bluetooth Smart device and creating a Bluetooth Smart Ready mobile application. The free kit is designed to work with an Arduino board (not included) and includes sample code to get developers up and running..."
If you want to create mobile apps that use Bluetooth and dont already have decent tools to let you do that, you might be interested enough to sign up and try out the free kit. The kit is only software, so there is minimal cost for these developer tools because companies must provide developer tools or no coder is going to develop apps that use the new product. The few app developers who take the time to even look at the free kit will likely go meh and continue using what they already use. A few people, most likely app developers who also like Arduinos, will seriously try out the kit. And a few people in the Arduino community might play with the kit because theyre interested in Bluetooth.

A stronger way to convince people to try using your new product is to offer it for free when there is true value in them trying it out. A pre-internet example was receiving a small personal sample of a new type of shampoo or other useful consumer products in the (snail) mail. An example more relevant to people who work with microcontrollers is the free samples which some electronics manufacturers offer.

Two examples of the free electronics samples are the Texas Instruments (TI) my.TI program and the Microchip Sample program. Create an account in those two programs, then you will be able to get designated electronics samples for free, usually new products. You might also be able to get individual samples for free even if a component is not listed as a free sample. Providing you with free samples is valuable to the manufacturer because you might not otherwise consider using that item, especially if there are obvious competitor items, either from the same company or from other companies, or if its totally new. To use a new item, you have to spend your (limited) time learning how to effectively use it. People like free stuff, so giving away a few samples of relatively low cost electronic components can convince people to try using them.

The second way mentioned above to engage potential users is to price the new item low compared to its competitors. Right now Arduino single-board microcontrollers have a lot of media buzz and a very active user community. When TI released a new single-board microcontroller, the Tiva C Series Connected LaunchPad, they priced it significantly lower than the Arduino Uno with significantly better capabilities. That convinced one of the Humboldt Microcontrollers Group participants to order a Tiva C LaunchPad as soon as he read about it.

The third way mentioned above to get people using your new product is to provide services to help people more quickly start using your product. One examples of this is the upcoming MediaTek launch of the LinkIt platform for the Internet of Things and the MediaTek Labs developer support program.
"MediaTek Labs will stimulate and support the creation of wearable devices and IoT applications based on the LinkIt platform. Developers and device makers who are interested in joining the MediaTek Labs program are invited to email labs-registration@mediatek.com to receive a notification once the program launches."
Another example of providing user support is when a tech manufacturer or distributor sends a representative to a user group meeting to explain and promote their products. I worked with Adobe one time to put on a Tech Cafe in Milwaukee which talked about recently released Adobe products and gave a short workshop on how to use some of those products. Adobe sponsored the meeting by having one of their employees lead the workshop, and they provided breakfast and beverages for the workshop participants. Everyone thought that was fantastic -- learn about powerful products, like Creative Suite, get to ask a knowledgeable company rep questions and get informative answers, and have free snacks on top of it. What geek could ask for more than that?
Oh by the way, the Adobe rep gave away a $2500 software suite at the end of the workshop, along with a few other valuable Adobe goodies and company swag. That was an awesome way to support their users and potential users!

How could the developer of a new product get you to try it out? Maybe at the next session of the Humboldt Microcontrollers Group we can make a list of all the ways people at the meeting know of that companies are willing to support the microcontroller users community in Humboldt. And one or several of us can start reaching out to those organizations to make them aware of us and to let them know we are interested in working with them to expand the use of their products!

**********


Read More..

Arduinos Motors Why Use A Diode

| 0 komentar |
[Tonights post is by Ed Smith, participant in the Humboldt Microcontrollers Group]

As you go through various electronics tutorials youll notice that almost every wiring diagram for electric motors has a diode across the motor terminals. Heres an example of what Im talking about, from Jeremy Blums excellent Arduino Tutorial series:
Diagram courtesy Jeremy Blum.

Youll notice that he has a capacitor across the terminals as well; well get to that.

Diodes are very simple, very crucial little bits of silicon. They allow electricity to flow in one direction, but not the other. If you wired the one in Blums diagram backwards, something would explode the moment you turned the transistor on, as the diode would allow the electricity to bypass the motor and flow straight from input to GND (ground, return, earth, common, whatever youd like to call it). Blam! Oriented the correct way, no current flows through it from VCC to GND.

The diode is in the circuit because electricity that is flowing tends to want to keep flowing, just like water. If your transistor (switch, MOSFET, whatever) is turned on, current is flowing and the motor is running and you suddenly switch off the transistor then the current tries to keep flowing, slams into the turned off switch and stacks up. If youve ever turned a garden hose off quickly and noticed how the hose jumped, or turned a faucet off quickly and heard pipes banging, this is roughly the same effect. The water has mass, and when it crashes into the valve/faucet it generates a pressure spike. We measure electrical pressure in voltage rather than the PSI (pounds per square inch) we use for water (and its not the electrons mass that causes issues; the actual cause is more complicated than I want to get into here), but the result is the same: it eventually causes damage. In your house it will knock the pipes loose and/or burst them. In this circuit it will destroy the transistor, likely leading to a direct short to GND, a motor that runs indefinitely, and a transistor that may end up on fire.

The diode allows that spike to flow back around to the input of the motor. Then the electricity can happily go in a circle like it wants to, without either slamming into the transistor and spiking the voltage or flowing to ground through the transistor and running the motor.

(Unrelated comment on the diagram: In the video in which the above circuit is shown, Jeremy says the resistor is used to isolate the transistor/motor from the Arduino; this is not actually the case. The resistor limits the amount of current the Arduino puts through the transistor when it is switching it on. Without this resistor the Arduino and possibly the transistor will die. Dont forget that resistor!)

A PropScope USB oscilloscope was used to get some shots of this effect. I used an Arduino putting out a 490Hz PWM (pulse-width modulation) signal to switch an IRLZ34N MOSFET (metal-oxide-semiconductor field-effect transistor), driving a small motor out of a cassette tape player. (The MOSFET is rated at 55 volts, so it can take a spike the level that I was generating without damage. Its also far, far, far overkill for driving the little motor I used.) In each set of pictures below, the first picture is at an ~16% duty cycle (on 16% of the time, off 84%), and the second is at a 50% duty cycle. Input voltage was ~5.1 volts from an ATX power supply. The red trace is the signal to the MOSFET (5V turns it on and allows the motor to run, 0V turns it off). The blue trace is the voltage after the motor just before the MOSFET.

Heres no diode, no capacitor:


Thats a 15.9 volt spike; if we were using a 10 volt transistor we would have issues! Generally a 2X over-rated part is nice and safe, but not this time. Were we driving a 12V motor this spike would be a lot higher, of course.


At a higher duty cycle the spike is both lower and shorter duration, I dont know why. Still, 12.27 volts is a big jump over the five volt input! Please note that this spike is due to current flowing through the motor coils, not due to the physical rotation of the motor. Any electrical device with a coil of any kind in it (relays are a common one) will cause this sort of spike.

The diode used is a UF4007, rated for 1000 volts and 1 amp; again, just a bit overkill. Note that the diode rating is how much it can block before it breaks down and allows two way flow, not how much can safely flow through it. With the diode in place, per the oscilloscope trace below,


5.8 volts is a much more reasonable spike; thats only a 0.7V gain. The reason for this gain is the diodes "forward voltage", which is a measure of how much of a voltage drop the diode causes to the voltage going through it. The higher the current, the higher the drop. For example, this diode has a ~1.7V drop when its maximum rating of 1 amp is flowing through it. Note how long the spike lasts! The energy that would have gone into the spike is now flowing in a circle through the motor, and it takes the motor a while to use it.


This time the longer duty cycle didnt change the spikes voltage much. Instead the lower energy level manifests as a shorter duration spike. Also interesting is that in both cases the motors RPM was higher with a diode than without. This is likely because without the diode the motor has a reverse voltage across it trying to turn it in the other direction. With a diode, that energy is trying to turn the motor in the same direction its already rotating.

Now about the capacitor I mentioned earlier! In the video in which the diagram was shown, Blum just said that the diode and capacitor protect things from noise and spikes. The diode takes care of spikes, as we saw. This leaves the noise for the capacitor to address. In this situation, "noise" typically speaks of electromagnetic noise rather than audible noise. Brushed motors are very noisy electrically and electromagnetically speaking, as the brushes connect and disconnect there are small arcs that broadcast themselves nicely.

I didnt have a 1µF capacitor sitting around, so I used a 10µF. Everybody loves overkill right?
Heres what I got on the scope:


Thats a bit different, isnt it? Also interesting is that the motor ran much faster at this PWM duty cycle than it did in the previous examples. Note that we never actually got up to 5V; that spike is long gone.


Less time, and even further from getting to 5V! The motor ran much faster, as well. The reasons behind this Im not entirely sure of, but heres my best guess.

When the MOSFET (or transistor) turns on, the negative side of both the motor and the capacitor are quickly pulled to 0 volts. When the MOSFET turns off, the capacitors negative/ground pin is still at 0V, and the capacitor still has a 5V charge in it. This drives the motor until that charge has equalized. The curve continues up and comes back down in both situations. I think that this is due to that same spike being partially dumped into the capacitor, charging further. I am far from sure on that. Also of note, the low duty cycles were audibly quieter as well as electrically quieter.

One thing to be aware of before this starts looking like a wonderful idea is that the stored energy in the capacitor (its internal charge is equal, but its ground pin is still a volt or three above what the MOSFET considers to be ground) will be pulled violently to ground when the MOSFET turns on. With a 10µF capacitor at a couple of volts and a MOSFET rated for 30 amps at 55 volts this is not an issue, but with a larger capacitor and/or a smaller MOSFET, it could be.

In closing, any time you are switching a device that contains a coil of any sort (relays, motors, solenoids, inductors, coil guns, transformers, etc.) you need a diode to direct that voltage spike to somewhere safe. The capacitor is more optional, and youre better off using a smaller capacitor than a large one unless you know you are having problems with electrical noise that you cannot solve in any other way.

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