A következő címkéjű bejegyzések mutatása: MCU. Összes bejegyzés megjelenítése
A következő címkéjű bejegyzések mutatása: MCU. Összes bejegyzés megjelenítése

2015. április 5., vasárnap

Dev Env - LightUp

The story starts almost two years ago.
As my son gets older (8 years old now), I was thinking to teach electronics, programing or both to him somehow. As I looking around just pop up something called LightUp on the Kickstarter.

http://www.lightup.io

I immediately jumped in to it, hoping that I'll get it to Christmas of 2013.
It didn't happened. After long waiting I got the kit sometime in Autumn 2014. It became a Christmas present for 2014.
My son started to play with the electronics part of the kit but not touched the MCU module included. As he reached the point making all of the tasks was included in the iOS app (what is unfortunately not too much), I tried to setup the MCU.
It was something like two month ago, and it was a major failure. I had two problem with it. The first is theoretical. I don't believe that is the best language to teach an 8 year old to program is the C++ even it is the simpler arduino's one. The second is the driver.
LightUp partnered with codebender to provide programing environment to the kit. Codebender is nothing else just an online Arduino IDE. They provide a driver pack, what is able to connect to virtually every Arduino compatible board. But the driver pack was not working with the LightUp MCU on my desk.
The story was put aside in this point.
A few days ago I seen, that my son started to play with the LightUp kit. This was a good indication to put some further work into the setup.
Went to codebender, downloaded the driver installed it, and the result was the same as two month ago:
This time I wasn't stopped here:
After installing it the result:
Success!
Finally I went to the CodeBender side to try it. When I started the IDE for the LightUp a LED blinking project was showing up:
Just downloaded it to the board, and started to work:
Conclusion:
What I see about the LightUp: This is an unfinished something. After a good start they lost their tempo. The idea to check the circuit with a camera is exciting, but they got nothing more. A large amount of example circuits and a kid friendly programing environment is missing.
In addition tons of far better kits are exists on the market (for example littlebits), what is kid friendly and gives the possibility to grow further. This one not.

2014. február 24., hétfő

Project idea - VU Meter

I'm somehow fiend of the LED bar (or VFD) based VU meters. If it contains more elements it is better. Sometime in my youth (What? I'm still jung!!!) I wanted to build one, I bought a fist of LEDs for it, but it remained a dream. At that time the audio equipments had something like that. For today it is out of stile.
I know exactly that the "thing" has no usage value. But I want one. If I start to build something like that I want an MCU in it and not a bunch of analog circuity.
I think, pick 50pcs LEDs/side and in multiplexed mode connecting to the MCU. I pick the ADC of the MCU and after some rework display the ADC output on the LEDs.
I also need some analog front-end for this.
I guessed that not myself the only fool who want one as a separate equipment or part of something. If I create this, I'll sell it also.
The type of the MCU is not decided yet (or maybe, just I wont tell it to you).
The LEDs are an other question. On the PCB I'd like to have place for three different kind of LEDs:
1. Bargraph. The Kingbright manufactures sutch thing:






This is one option but the price is a high. Based on the color and intensity the prices are around $1-$1.5 for the 10 element bar. The full component cost will be above $15.
2. Separate reactangle shaped LEDs
This can be bought around $0.03 a piece.
3. SMD LEDs
The price is the same, but who want to handsolder them???

The idea is to create a PCB what is able to accommodate the all three types (or at least two).

2014. február 10., hétfő

Project idea - Compass

In the Adafruit blog I've seen a Compass what I liked:


In the meantime I've problems with this design. This for me (as most of the Arduino based projects) is an unfinished something. It is good for playing but unusable as a compass. I'd like to create something what I can give into my child's hand. What he/she can show his friends (dad made it). And I may manufacture in small batch.
And I don't want to use the LEDs form the NeoPixel ring.
The idea is the following:
Pick 120pcs 0603 LEDs (let say blue and red). Place them on a round PCB on the edge in two circles. From the blue all lit except one. From the red only one. The center of the PCB will contain the uC, maybe some matrix driver and the magnetometer chip. The back side of the PCB will get the batteries and the on-off switch. The whole thing goes into a round SOB enclosure.

2013. december 14., szombat

Frequency counter V2 9. - Prototype finished

This morning (started to write this three days ago, but just finished now), I came to the end of what planed in the prototype.The device works measuring frequency, period of time and is able to display time period value as frequency with three decimal places.It already meets (and in some ways outperforms) the customer's demand.Of course, this does not mean the end of the project . I'm trying to summarize what's left:Hardware:
  • The current design has a jumper/dip switch block what works, but something is not as good as it should be, because I did not think this originally well over .
  • Should be handle the future expandability. This is mainly for to the control switches and feedback of those.
  • It should be think over what can be done with an MCU has two timers instead one.
  • I should plan some add-ons . They can also be combined circuits of the following: OCXO , power supply, input signal conditioning , input divider, control panel
  • Create the plans of the production PCB.
Software:
  • It should be handle if we are outside of the measurement range. Counter overflow, missing gate signal, etc. .
  • Fix the time period display to always print out nanoseconds.
  • Measurement of the fill factor.
  • Managing different time base (eg, external 10MHz. For the OCXO it will be needed)
  • Automatic measurement type selection (for low frequency period of time, for high-frequency frequency measurement)
  • Displaying more accurate measurement result using averaging
  • The code for the add-ons.
  • Employing the WDT+ for the display handling/multiplexing
That's all for now. Question when I can deal with it again. Within a few days for sure.

2013. október 12., szombat

Windows 8.1 - mired "freedom"

I was at a conference organized by Freescale. I wrote about it earlier here.
What they did not write, it seemed only a small inconvenience with the Freedom board what they give away. I could not breathe into life the OpenSDA debug firmware. Finaly I loaded on my neighbor's the machine. I thought, I screwed up something for sure.
Since then, it turned out that it was not my mistake, but also ran into this issue:
http://mcuoneclipse.com/2013/10/12/frdm-board-bootloader-fails-with-windows-8-1-preview/
So the Win8.1 and OpenSDA not love each other. :-(
For now there is no solution, so the upgrade of my developer machine is a question.

2013. július 26., péntek

Double multiplex

My head is full with planed new electronic projects. Most of these contain some - especially LED based - display. Even with my Frequency Counter project caused some headache driving the display. If I want to use the minimum amount of external components than an 8 digit 7-Segment multiplexed display requires 16 I/O pins, what is problematic with a small pin count MCU. In addition, it requires external components because an MCU is not able to supply the current required by a whole digit. The lack of enough I/O pins driven me to use an additional IC (74HC238), 8 transistor and 16 resistance  for the display (the transistors and half of the resistors could be replaced by a darlington array, while we using common cathode displays. For common anode this is not an option because PNP array or common collector NPN does not exists). As I was searching new ideas for one of my new project on the net, accidentally came across an EDN article. This article is about the "double multiplexing". The point is that at any given moment we drive only single LED from the entire LED matrix. This reduces current consumption of the circuit, the number of required external components, and the amount of required I/O pins. The display mentioned above can be driven by nine pieces of resistance and 9 I/O pins. The question we should answer, if we can generate enough current for brightness and fast enough code to avoid flickering.
We'll see.I definitely want to try the stuff, so I designed a test PCB (I hate to put this amount of jumper wire into the breadboard).

 

I'll try to put it together during the weekend and writing the test code is the next.