Pages

Sunday, December 5, 2021

JBL Creature II speakers repair and power supply mod

The JBL Creature II is a 2.1 speaker system.

They came out in middle 2000, and they look futuristic.

The Creature II are equiped with a 27 watts 4.5 inch subwoofer and 2 small 4. 5 inch 9 watt sattelites. On the subwoofer is located the treble and bass adjustment, on one of the sattelite the touch volume control.

A friend of mine give me those speaker, they were without the power supply and the two satellites speaker were broken.

The speaker ring foam ring decay it's a common fault for this kind of spekaer. I've buy a couple of 40mm 4Ohm 5W full range speaker from AIYIMA and replaced the original ones, like the one you see below.

I did not want to buy a new supply for this speaker system. I had a 220V to 19V 1A transformer, I know the original supply it's 3.5A, but I've take measurements, my system use 1A almost at high volume, so I've used the one I've.

My first try was to 3D print an holder and put the transfomer inside the subwoofer case. The holder works but I had not thinked about the inducted noise of the transformer coil. So I moved the transformer outside the case, but leaving a 220V switch in the case, this way the transfomer is fully powered off when the switch is off.

This system sounds pretty good. I think that due to his 2000/futuristic look I'm going to use this with a synthetizer, built in the 2000. They are a good pair.

Notes

  • read risk disclaimer
  • excuse my bad english


Thursday, November 4, 2021

Sony PS3 capacitors remove and replace - YLOD repair

I've already talked about this topic on the this post here: https://davidegironi.blogspot.com/2021/09/sony-playstation-3-fat-ylod-repair.html

Summarizing Sony Playstation 3 Fat use a kind of capacitor, namely the NEC/TOKIN, that dies after a while due to thermal stress. The result of this damage is the Yellow Led Of Dead (YOLD), in other word your PS3 will not boot.

The "uneasy" part on replacing those caps is the removal. For this reason I want to share with you the method I've used.

Keep in mind that this procedure may damage your PS3, so do this repair at your own risk, i am not responsible if your PlayStation 3 will not work anymore.

The trick I've use to remove those caps is to use a chisel. You can find it in the linked video. You just have to pay attention not to use to much force.

Once removed you have just to clean the trace with a soldering iron. I've used one with a big thermal mass, this helps cause there's a pretty big ground plane to heat.

Last step you have to install new capacitors, doing this keep in mind you have to stay "low" cause over the new caps there will be the metal frame of the PS3. By the way like I've said in the linked post I've used 470uF Tantalum capacitors, model 2R5TPE470M9. 4 for each of the NEC/TOKIN removed.

Removing the original caps you will lose the VCC join between the caps head, so you have to replace this with a piece of wire.

If you have done a good job, and the damage was just on capacitors, you are good to go, your Playstation 3 will boot again.

Notes

  • read risk disclaimer
  • excuse my bad english

Tuesday, October 5, 2021

Bontempi HP 544.20 keyboard repair

The HP 544.20 is a middle 80's keyboard from Bontempi (https://www.bontempi.com/).

Bontempi is an Italian musical instrument manufacturer that build low-priced instruments. This model is an electric organ that offers a Solo section with a few instruments presets and a Rhythm section.

I found this keyboard years ago on the edge of the road. It was full of ants.

First thing first I power it on, to my surprise after a couple of tries it works. So I decide to clean it.

The only problem this keyboard has is that most of the time, you have to move it, or try a few times to power it on after it works.

The keys are not so bad, they don't feels like a toy instruments. Even if the sound is not that good I decide to give a second change to this keyboard.

I've noticed that it was something on the power/amplifier board that didn't work, cause moving cables and connector on the main boards made this works.

Power stage seems good. Visual inspection seems ok. So my first try was to clean the connectors. All seems to work for a while... then after a couple of days the power on issue started again.

So I decide to scope around the board.

I've found that there's aren't problem on the audio signal coming out from the generator board to the amplifier board. So it should be something on the amplifier board.

The thing is that I've to wait for the problem to arise to check where the signal fade away. After a couple of tries I've found that the signal seems to vanish where it should not. I though it was something related to a component, but then I realize the signal is interrupted on a PCB trace.

I repeat the visual inspection, this time i focessed on the indicted PCB trace under my microscope and there i found the problem.

There's a little crack in this PCB that sometimes stops the signal. Moving PCB connectors helped cause the PCB slighlty moves and the trace conduct again.

So I simply scrape a little bit of the trace next to the crack, and solder this again.

The keyboard now is fully working.

For this reason I decided to build also a sheet music holder, that was missing. Now it's complete and ready to play.

Notes

  • read risk disclaimer
  • excuse my bad english

Saturday, September 4, 2021

Sony Playstation 3 Fat YLOD repair

The Sony Playstation 3 Fat, the first version Sony build, suffers for the well know problem of the Yellow Led Of Death (YLOD), that cause the PS3 not to boot.

It happens that I've found a PS3 Fat in the dumpster. It works for a while, than It turns off due to thermal overload.

First thing I've try, was to reflow the two main processing unit.

I take my hot air soldering station, set it to 200 Celsius degree and move for 2 minutes on the first then on the second unit. I keep moving around while reflowing. Second step was done at 250 Celsius degree and 2 minutes.

After the reflow, I've changed the thermal paste, and the PS3 has started working again.

I'm not a big player, so I'ven't use the console for a while. After a couple of month I wanted to play again, but the PS3 does not boot anymore. This time it suffers of the YLOD, it try to boot, then after 1 ore 2 seconds the red led flashes three times and PS3 won't start.

Searching on the web I've found this may due to the NEC/TOKIN capacitors used by Sony in this console version. There are 8, 4 on one side, 4 on the others. They suffer for thermal overload, and eventually loose their capacity.

The fix this time was to remove those caps, and replace with new ones. You can even replace just a couple of those caps, so I decide to replace 4 caps, the bottom side one.

I've used 470uF Tantalum capacitors, model 2R5TPE470M9. 4 for each of the NEC/TOKIN removed.

The difficult part here is to remove the old caps, I've try with air flow solder, without luck, finally I was able to remove those with some brutal force and a chisel. You have to pay attention removing caps cause you may damage your PS3 PCB, and it can be your Game Over.

Anyway, once caps have been removed, you have to clean the PCB trace. There's a big gound plane, so you have to use a solder with some energy. I've used a 100W solder with a big tip (1cm) with a strong thermal mass.

Even to solder the new caps, you have to use a solder with a pretty big thermal mass. I've try with my KSGER T12 soldering station, but even at 450 Celsius degree it was difficult to solder the caps. So I've used a 60W solder with a 3mm tip, the 100W I've used before has a really big tip.

Remember to select low profile caps and solder them next to the PCB, try to stay low, cause once you assembly the console again, just over your caps there will be the mouting shield.

Here you can find a really good guide: https://www.psx-place.com/threads/research-experimental-nec-tokin-capacitors-replacement-ylod.25260/

Once I've replaced the caps, my PS3 has started working. Again I'm not a big gamer, It was more about reparing this console than playing on it... but it has been in the same fashing funny.

Wednesday, August 4, 2021

ESP8266 seven segment counter

ref 2018

 

The ESP8266 seven segment counter is a WiFi enabled device that updates one ore more 7 segment led display by loading data from a RESTful API.

The device is based on a ESP8266 chip. It uses the WiFiManager (https://github.com/tzapu/WiFiManager) library to simplify the settings of the AP the board has to connect to. If the ESP8266 can not find the last network used, or no network is set, the ESP8266 enters the "forced AP mode", now the user can connect to the device WiFi and set the main WiFi AP to be used for the internet connection.
When it's connected WiFi AP the IP address given by the main AP DHCP server, or the static IP of the device is shown on the first seven segment dispaly.


The user can change the API uri used to get the data, and the interval of the data routine from the settings web page.

Whenever the interval time, which is by the way expressed in seconds, is passed by, the ESP8266 performs a GET requests on the API uri, then try to parse the results. The result must be plain text format: each line must be a numeric value that will be shown on the display. Of course it's just a matter of changing a little bit of code to customize the parsing function to fit the desidered API uri.

If errors happened, nothing is display till a threshold number is reached, then the last error is displayed.



The schematics and the board for this project is as simple as the code.

The power comes from the 5V port, a mini USB is used, then a linear regulator reduce the voltage to 3.3V used by the ESP8266 board, that is a ESP-12F pinout compatibile one.

The seven segment display driver is the MAX7219.



Even the numer of 8 bit seven segment display is pretty simple to customize by changing a few lines of code.
The one proposed here has 2 seven segment 8 digits display, one display for each driver, but with just a few changes it will be easy to add or reduce the number of digits to use.

Code
Notes
  • read risk disclaimer
  • excuse my bad english







Sunday, July 4, 2021

ESP Temperature to ThingSpeak smart meter


ESP/Temperature To ThingSpeak is a smart temperature meter that sends temperature to the ThingSpeak service.


It's based on the ESP8266 board and uses the ADS1115 analog to digital converter in order to read the resistance value of up to 4 NTC sensors and convert it to the temperature value. The NTC to temperature convertion is performed using the library you can find here http://davidegironi.blogspot.com/2018/01/esp8266arduino-ntc-library.html

The code is written using the Arduino ESP8266 framework.

The WiFiManager library it is used to simplify the settings of the AP the board has to connect to. If the ESP8266 can not find the last network used, or no network is set, the ESP8266 enters the "forced AP mode", now the user can connect to the device WiFi and set the main WiFi AP to be used for the internet connection.

When it's connected WiFi AP the IP address given by the main AP DHCP server, the default web page is accesible at the ip address of the device or at the address http://esptemperaturetothingspeak001

Through the web interface one can also set the unit of temperature and the ThingSpeak API Key and Channel ID.


A ThingSpeak channel has to be setup, it must have 1 to 4 Fields, depending on the NTC sensor added. Then the Write API Key and the Channel ID should be filled up in the web interface of this mini device in order to allow the temperature to be sent to ThingSpeak.


Each seconds the device read the raw value from the ADC, convert itt to resistance, and then use the resistance value to get the temperature.

Each minute temperatures where sent to ThingSpeak.

The code is really simple and can be modified according to your needs. Just download it, compile and use it.

Code

Notes
  • read risk disclaimer
  • excuse my bad english

Sunday, June 6, 2021

AVR BTS7960 43A DC Motor Driver

The BTS7960 is a fully integrated high current H bridge module for motor drive applications.


This library can drive up to two BTS7960, it means two motors independently in speed, direction and acceleration.

The library I'm going to use here it's the TB6612FNG one, you can find in the blog link below.
Indeed the BTS7960 works almost like the TB6612FNG IC.
We just need to change the wiring and all the things will works.

This library was developed on Eclipse, built with avr-gcc on Atmega8 @ 8MHz but can easly be ported to other microcontroller.



For further information take a look at the TB6612FNG post here: https://davidegironi.blogspot.com/2020/03/tb6612fng-avr-motor-driver.html

Notes
  • read risk disclaimer
  • excuse my bad english


Friday, May 14, 2021

docker-mysql-backup-restore-s3 Docker backup and restore using S3 AWS

docker-mysql-backup-restore-s3 is Docker app that can be used to backup and restore a MySQL using AWS S3 as storage.



I want to run a mysql backup and restore script on my devices that use S3 AWS as storage for the dump. The best way to do this in a multi-enviroment to me is to pack this script in to a Docker image.

You can find it on Docker Hub here: https://hub.docker.com/repository/docker/davidegironi/docker-mysql-backup-restore-s3

To perform a backup simply run the following docker command, selecting the right parameter for your AWS and MySQL server

docker run -e ACTION=backup -e S3_ACCESSKEYID=awskey -e S3_SECRETACCESSKEY=awssecret -e S3_BUCKET=s3bucket -e S3_PREFIX=backup -e S3_REGION=awsregion -e MYSQL_USER=user -e MYSQL_PASSWORD=password -e MYSQL_HOST=localhost -e S3_FILENAME=latestbackup -e MULTI_FILES=yes davidegironi/docker-mysql-backup-restore-s3
To restore, the command is almost the same
docker run -e ACTION=restore -e MYSQLDUMP_DATABASE=test -e MYSQLDUMP_TODATABASE=newtest -e S3_ACCESSKEYID=awskey -e S3_SECRETACCESSKEY=awssecret -e S3_BUCKET=s3bucket -e S3_REGION=awsregion -e S3_PREFIX=backup -e MYSQL_USER=user -e MYSQL_PASSWORD=password -e MYSQL_HOST=localhost -e S3_FILENAME=latestbackup -e MULTI_FILES=yes -davidegironi/docker-mysql-backup-restore-s3
Find the latest usage option and code in the github page of this small project here: https://github.com/davidegironi/docker-mysql-backup-restore-s3 

I'm using this on Fargate to backup and restore a managed MariaDB (RDS) without poblems.


Notes
  • read risk disclaimer
  • excuse my bad english

Friday, April 2, 2021

TB6612FNG AVR motor driver


The + is an H-Bridge driver IC that can drive up to 2 motors.
This IC as a maximum power supply voltage of 15V, with an output current of 1.2A average and 3.2A peak.





It's pretty simple to drive this chip. For each motor it has 3 input, 2 digital ones used to select the direction, the other is the PWM input.

Find below the control table for this IC, IN1 and IN2 are the two digital input that defines the direction and in conjuction with the PWM one, the Mode of operation of the OUT1 and OUT2 pin, that are connected to the motor.

IN1 IN2 PWM OUT1 OUT2 Mode
H H H/L L L Short brake
L H H L H CCW
L H L L L Short brake
H L H H L CW
H L L L L Short brake
L L H OFF OFF Stop

This driver is based on my DC Motor PWM driver you can find it here http://davidegironi.blogspot.com/2015/02/driving-dc-motor-using-pwm-with-avr.html

It use the PWM output pins of the microcontroller, it means that no software resources are used to generate the PWM needed to drive the motors in speed.

This driver is built to control one IC, it means 2 motors independently in speed and direction.

This library was developed on Eclipse, built with avr-gcc on Atmega8 @ 8MHz but can easly be ported to other microcontroller.



All the parameters can be changed in the dcmotortb6612.h.
The drive can even run on a single motor output, we just need to change the macro DCMOTORTB6612_SINGLEMOTOR.


Changelog
  • v01: minor fix to motor stop macro
  • v01b: first version

Code

Notes
  • read risk disclaimer
  • excuse my bad english




Tuesday, March 2, 2021

ESP8266 ESC/POS Smart Thermal Printer


The gear introduced here is a device that use a ESP8266 to print text that comes from a RESTful API or from an internal database to an ESC/POS thermal printer.


ESC/P (Epson Standard Code for Printers) is a printer control language developed by Epson to control computer printers. The ESC/POS is a variant for controlling receipt printers as commonly used at the point of sale (POS).


The clue here is to build a device that call a RESTful API, and print the text the API returns to a thermal printer, and eventually fits a thermal printer.

I want the printer to be capable of printing:
  • when a button is pressed
  • once in a day at a specific day time
  • many times after minutes have passed
To build this thing I decided to use a ESP8266.

At startup the ESP8266 try to connect to a WiFi network, if it does not reach the last network used, or no network was imposed before, the device comes to a "forced AP mode", that way one can connect to the device WiFi and set the main WiFi AP to be used for the internet connection. The WiFiManager (https://github.com/tzapu/WiFiManager) library it's used for this purpose.


Whenever the IP address is released at the device by the DHCP of the main AP, or even if a static address is imposed, the device address is printed on the thermal printer.
This address is useful to access the settings page.

All the settings for this device are accessible by the web page embedded in it, like custom header, footer, ESC/POS commands, cut paper and print logo enabler, day/time printing period, the text database and other.


If the device is connected to the internet, and the RESTful API uri is inserted, then the device call the API and print out the text returned, otherwise a random string is selected from an internal text database.

There's also a pretty pulsing light output can be connected to a led strip to make the device look more attractive.

The board is quite simple, it features a fixed voltage DC-DC Step Down regulator, the ESP8266 in the ESP-12 package, the strip led power stage, and a voltage converter that can be populated if the printer UART voltage is not the same of the ESP8266 UART voltage (3.3v).



I've build the first gear using a prototype board, it's the one you find in the video and pictures above, but also I've embedded the PCB board in a few printer I gifted to friends.


Code

Notes
  • read risk disclaimer
  • excuse my bad english

Sunday, February 7, 2021

A script to download all the repositories from a Bitbucket account


A few days ago I've to download all the git repositories from my company Bitbucket account.

I wasn't able to find any script to perform this task, so I write down this one you find in the gist linked above.

This bash script will download and eventually pull all changes from all the repositories of an account.

You can use your Bitbucket account, or better you should create a read/only account with access to all the repositories you want to download.

Set your Bitbucket account username and password in the "run_bitbucketgitdownloader.sh" file, than run the file.

$./run_bitbucketgitdownloader.sh

You also could enable the git credential helper, to prevent git always requesting you the password. This is done using the command:

$git config --global credential.helper store

If you need you could also add the file to a crontab job.


Code

Notes
  • read risk disclaimer
  • excuse my bad english

Saturday, January 2, 2021

MiniHTMLTextBox - .NET WinForm HTML TextBox component

MiniHTMLTextBox is Minimal .NET WinForms HTML Editor control based on the TextBox component.

I was building a simple C# desktop application that needs a simple HTML editor. I haven't find any good and free HTML editor, so I decide to build one my one.

It has minimal features, like bold, italic, underline, font name and size selection, text can be aligned, it also ships a ordered and buillet list. Source text can be view like formatted HTML or html raw format.

For the HTML rendering it use a WebBrowser component, that triggers the change in the text and render it to the UI.

In Text mode a simple TextBox is used.

This component is very simple, but it can be expanded it one needs. Both the WebBrowser and TextBox component are exposed as public, so that one can play with the internal components without having to compile a new one.


Downloads


Notes
  • read risk disclaimer
  • excuse my bad english