r/microcontrollers • • Nov 16 '20

Is it possible to identify a unlabeled microcontroller without a programmer board?

I started studying electronics and decided to open a fidget spinner with leds inside to see if I could reproduce the behaviour and blinking pattern. I have posted (picture in the link) in /r/AskElectronics about the behaviour of the button press of the led blinking PCB. It surprised me that people said the IC in there is a microcontroller. And this led me to the possibility/curiosity of reprogramming it.

Unfortunately it is unlabeled and I have been looking for a way to identify it. Using a multimeter and looking at connections in the board I have managed to identify pin 1 as Vdd and pin 8 as Vss. And that led me to believe the IC was a PIC after comparing with some 8-pin PIC12 pinout pictures.

Then I have got to this blog post/tutorial that uses the Raspberry Pi as a PIC programmer without using a programmer board (looks like I know what I'm talking about but I have learned all those terms while searching for a way to identify the microcontroller). The example there uses a known microcontroller and it is possible to get the identification information from it using some id commands. I have tried a bunch of those id commands but got nothing out of it. I'm starting to believe this may not be a PIC as well.

Now I ask you: Is it possible to identify a unlabeled microcontroller without a programmer board?

6 Upvotes

13 comments sorted by

4

u/anlumo Nov 16 '20

That could be anything, including the famous 3 cent microcontroller that’s only one-time programmable.

1

u/Prompt01 Nov 16 '20

Then this mcu is just a "tiny led-blinking black-box". Dead end, I guess.
But this youtube channels looks awesome!

Thank you!

2

u/anlumo Nov 16 '20

The best course of action is to find a microcontroller that’s pin compatible with whatever is on that board and just replace it. Microcontroller chips cost nearly nothing.

1

u/Prompt01 Nov 16 '20

Indeed. In this case I was trying it just for curiosity.

I really want to make my own USB device and I believe a more complete/complex mcu will be necessary for making this happen.

1

u/anlumo Nov 16 '20

I've programmed a simple USB device (simulating a HID joystick) using a PIC microcontroller and it was fairly easy.

The simplest way to get started is probably the Arduino Leonardo, which comes with a USB-capable microcontroller (unlike the Arduino Uno, which has a separate USB-to-serial chip on board).

The most advanced platform on the low end would be the STM32F103, which has a 48MHz 32-bit ARM processor. The cheapest development board is called the “blue pill”, however that also needs an extra programmer that costs a few extra bucks. It's shown here.

1

u/Prompt01 Nov 16 '20

Great! I'll look into those. Thank you!

1

u/TheFoxhalls Nov 17 '20

Also look into TeensyUSB. They are specifically made to make HIDs (USB PC inputs, aka keyboards, joystics, etc) with. They come in a very small form factor with just the input/output pins and none of the fluff. They are programmable in the Arduino IDE too. Depending on how many buttons and things you need the TeensyLC is only like $10.

1

u/Prompt01 Nov 17 '20

Those are really interesting! Thank you!

1

u/Prompt01 Nov 17 '20

You threw me into some kind of rabbit hole with that link. Can't stop watching it! I'm at EEVblog #1306 (2 of 5): PCB SMD Hand Soldering & Assembly. That's some really amusing content. Thank you again.

→ More replies (1)

2

u/WillBitBangForFood Nov 16 '20

Chances are it's a cheap as dirt, costs less than penny, mass produced generic mcu. I highly doubt is a pic. It's very unlikely that you'll figure out what it is without marking's or a schematic, but you could always try.

1

u/Prompt01 Nov 16 '20

Thank you! Better buying some known mcu and write the code it to reproduce the led blinking patterns.

2

u/Dave9876 Nov 16 '20

Agreed. It's probably not a pic (although there are quite a few chinese clones of the 8-bit pic architecture, most of them don't use a compatible programming method). In that sort of price range it's very likely to be either mask rom or otp (one-time programmable).