Nokia 5110 GLCD and our friendly MSP430

Originally Posted Here

I had this Nokia LCD i picked up a while back. It is perfect when you want to play with graphics on a tiny lcd that comes from the good old days of Nokia’s Monochome days. Several might have spent days playing space invaders/snakes etc.

The time came when I was bored in my hotel room and I had it in my parts bin which i was carrying while moving from Delhi to Pune.

The LCD used a Phillips PCD 8544 Driver which communicates on SPI.The voltage levels are 2.7-3.3V happy for our MSP430.

NYC has a pretty nice explanation on how it works and how to play with it with MSP430 over on his blog

For TL:DR;

The LCD has the following pins to interface to:

Pin Number Pin Label Pin Function Input/Output? Notes
1 VCC Positive power supply Input Supply range is between 2.7V and 3.3V
2 GND Ground Input
3 SCE Chip select Input Active low
4 RST Reset Input Active low
5 D/C Mode select Input Select between command mode (low) and data mode (high).
6 DN(MOSI) Serial data in Input
7 SCLK Serial clock Input
8 LED LED backlight supply Input Maximum voltage supply is 3.3V.

The display is divided into 6 horizontal bands of 8 bits each (48) and 84 columns .

At a time you write to a single bank.

And you can continue to update only a single bank just in case you have dynamic data in that particular bank.

The communication is done using SPI.

The code that i used is based on RobG’s post.

It displays the temperature (from the internal sensor ofcourse!) and some static text

Connections are as follows(PORT1):

  • LCD5110_SCLK_PIN- BIT5
  • LCD5110_DN_PIN- BIT7
  • LCD5110_SCE_PIN- BIT0
  • LCD5110_DC_PIN- BIT1

WP_20140803_19_27_04_Pro
Code is available here on as a gist .

When u are #Bored in a #Hotel room, Its time to #play with new #Hardware #MSP430 #DIY #Pune

Just incase you need to play more with graphics see this cool post by Sparkfun

If you have any difficulties post here in comments.

Advertisements

Fiddle – The DIYed Music System

Originally Posted here

Zu ZU ZU ZU ZU UUUU ..BR.BR.CHIK Thats how my old ‘Phillips All in One’ failed a couple of weeks back. It was a pretty archaic piece. All it could do was play Cassettes, Do Radio, Had an Aux In and offcourse the marketed CD Player with a segmented Display. But today most of the music is digital and hence Upgrade was necessary.

I was planning to buy one and browsing the estores but then then Makers Dilemma struck me.

Why Buy? When it can be Built!

And alas! I was fiddling with microcontrollers and SD Cards to make one. But couldnt get to the level i wanted. I wanted one that could:

  • Play MP3s
  • Radio
  • Aux -IN
  • Take SD Cards
  • Remotes will be good too.

Fitting such things in a project would rather be heavenly. I searched online for references and You have it boy! there is one ready to amplify (supply) module from our friends in China that does it all . See this . I had seen this in a Taxi (less formally called Gramin Seva) while commuting to college once, which made me realise that this would certainly be available in India. The next day i was in the market looking for it and I did source it for about 9 $ (INR 500 ) Now all i need to do is :

  1. Decipher the connections
  2. Build a power supply and Amplifier
  3. Find/Repurpose/Build a 2-Component (1-Woof and 1-Tweeter) speaker box
  4. Modify the box to fit all in
  5. Enjoy

Connections were pretty easy as the silkscreen had some references. It basically needs a 5V DC supply that’s the two pin connected on the left for and give stereo output using the 3 of 4 connectors on right (Right, Left and GND) and the last one is for the FM Antenna The Landscape The next part was testing if i will see the blue smoke of death as sometimes they can mess up with silkscreens too. FingersCrossed It worked fine and i was playing things off the USB straight away! USB Reading Now, the power supply and Amplifier. I used the omnipresent 7805 Regulator that could power the module easily as i estimated the current requirements to be around 250-300mA . The supply was going to be 12VDC due to the Amp i was building and hence, a heat sink was necessary. The Amp was build out of ST’s TDA2030 which is a 14W,voltage friendly, High Fidelity (Correct Portrayl of sound without much loss in clarity), Class AB , Mono Amplifier. The Application circuit works charm. So, i assembled them on a single perfboard and was short of one heat sink. I now had to decide. Who needs the heat sink badly? Demo runs showed TDA2030 needs it badly. Now using some thermal glue and nuts and bolts i screwed the heatsink to the TDA2030 and made a makeshift heat sink for 7805 Ortho View Circuit -Front Circuit- Back I heard a strange buzz sometimes in the background which was because of some filtering issues. Adding a snubber (filter) for AC frequencies (50Hz) that was almost gone. Used the 10k and 0.1uF combination. I had an Old but dis functional Column 2 component speaker, we had bought probably 12 years down the line. It was the ideal candidate for the purpose. Now opening and digging i found phenolic pcb with broken and corroded traces. I reworked them and the Woofer was working . (Oh! Yeah) Look at that Woofer I planned to fit the circuit inside the speaker box itself. For that i had to cut a small square pocket in the body for the module to peep out and the other electronics would be inside it. This was a bit more difficult than anticipated. After 2 hours and 2 broken saw blades , I was able to do this. The 2 hour , 2 broken blades cut Now it was assembling time. All Messed up After a few half hours, i got it all working.. No Buzz and all music! Charm Cheers! Rohit