P20F04D-12L display with HUB40A interface and 16×8 2R1G1B pixels (part 2)

original article (roumanian language)

by niq_roAfter I became familiar with P20F04D-12L display module using Arduino develelopment board, I decided to made a weather station (temperature & humidity). The first tests we presented in the previous article named P20F04D-12L display with HUB40A interface and 16×8 2R1G1B pixels.

For test I use 2 module and I create a “picture” with 32×8 pixels for clock data (hours and minutes) imagine0aimagine0and a real case is:eP9260170In movie named afisaj 2R1G1B cu interfata HUB40A controlat de Arduino (8) I try different type of  colours and speed animatrions:

Then I made a new “picture” for temperature:imagine1and I create a string with 512 elements (32 columns & 8 rows): imagine1aNow, on my display I see:P9300173After this, I made a new “picture” for humidity:imagine2and a new string with 512 elements:imagine2aNow, on display I see:

P9300183

I made a new movie, named afisaj 2R1G1B cu interfata HUB40A controlat de Arduino (9)

I made a weather station with AM2302 (DHT22):arduino weather station on P20 2R1G1B HUB40A display schematic

using an original sketch named hub40a_test4m1s1.ino and I made 2 movies:

P20F04D-12L display with HUB40A interface and 16×8 2R1G1B pixels

original article in roumanian languagedP9260170This display module named P20F04D-12L has 16×8 pixels, each made with 2R1G1B leds (2 red leds, one green led & one blue led).

For power supply it use 5V (VCC & two VDDs):dP9260171dP9260173and interface for control is named HUB40A:dP9260172dP9260174Usual, this modules are used as street display with maximum 8 rows:dP9260176and cascaded on columns:
eP9260170
I search for info about HUB40A interface, but i found few usefull datas:HUB40Aand I found on board 2 chips 74HC245 and 32 chips MBI5026.bP9220176MBI5026GFDisplay has 2 big zone (upper & bottom rows), each with 4 square (4×4):HUB40A_vs_human_eyesData is put serial like as ususal shift register, just there is 2 zone & 4 colour (2 red, 1 green & 1 blue):text_HUB40AFor control the display module I use a Arduino with this schematic:HUB40A Arduino test schematic

For power this module I use a 5V/40A power supply module (can be used for 4 display modules).

First, I change a sketch from www.arduino.cc/en/Reference/ShiftOut and now I see a “picture” with my name with base colour:IMG_20150924_134820IMG_20150924_134833IMG_20150924_134826I made a movie named afisaj 2R1G1B cu interfata HUB40A controlat de Arduino

Then, I put 2 colours to made other colour:IMG_20150924_155128IMG_20150924_155123IMG_20150924_155118and I made a new movie named afisaj 2R1G1B cu interfata HUB40A controlat cu Arduino (2)

Finally, I put all colour (one red, one blue & one green):IMG_20150924_155446Next step was to put text at bottom zone:P9250170P9250170xP9250171 (1)and using both zones:P9250173and I made a new movie named afisaj 2R1G1B cu interfata HUB40A controlat cu Arduino (3)

I put at middle of display:P9250170 (1)P9250171 (1)P9250172 (1)

like in movie https://youtu.be/muSU_hueHlk

then I use 2 colours:P9250171xP9250172xP9250170y

like in nest movie named afisaj 2R1G1B cu interfata HUB40A controlat de Arduino (5)

and “white”using one red, one green and one blue:P9250170ylike in movie named afisaj 2R1G1B cu interfata HUB40A controlat de Arduino (6)

For this movie I use sketch HUB40A_test4m1g.ino !!!

I change the “picture” for use all pixels from display:text2_HUB40Aand I got next cases:P9250170zP9250178zP9250177zP9250175zP9250173zP9250171z

like in movie named afisaj 2R1G1B cu interfata HUB40A controlat de Arduino (7)

For this cases, I use sketch named HUB40A_test4m1h.ino !!!

With 2 display modules, I can put a clock:eP9260170 (1)

Mini audio amplifier with LM386

In more portable devices it use LM386 who is 1W audio power amplifier with x20 to x200 gain (26..46dB) and BASS BOOST feature.

Is very usefull to read the datasheet from Texas Instruments or UTC.

base schematic
base schematic
base schematic with bass boost
base schematic with bass boost

I made a sound surveillance system using LM386 with huge gain like in article How to get 74dB by LM386 writted by Kazuhiro Sunamura.

74dB

At LA3ZA Radio & Electronics is made a analize of this schematic with LM386, see the document.

At Decibels (dB) Calculator page you can understund the conversion between gain using dB, e.g. 74dB = x5000 and 20dB = x10.

I design a schematic who use jumpers for classic and special gain:

niq_ro's design
niq_ro’s design

The cases are:

  • with all jumpers free, gaine x20:
x20
  • close 1-2, gain x20..x200:
x20..200
  • close 2-3, gain x50..x5000:
x50..5000

For unidirectional intercom schematic is:

A version a board and montage can be:

3D
montage