Category: Electronics

Replace Bosch eBike Intuvia display dead battery

Inside the Bosch Intuvia display there is a small backup battery that supply it when the main battery is turned off or when the display is removed from the bike. It could happend that your Bosch Intuvia disply get over-discharged.

The symptoms of this problem are:

  • you can’t start your bike from the display but if you start if form the push-botton on the main battery the bike works fine
  • you lost the clock each time you turn off the bike

To solve this problem is necessary to replace the small 240 mAh LiPo backup battery inside the display.

I can do the work for you if you are not confident whit this kind of works. Leave a comment and I will contact you.


Low power foto-webcam

I’m working on a new project, a low power foto-webcam. The idea come from website, they are installing this systems in remote area from many years. However, they use to leave the system always turned on, instead I want to turn the system ON only when the camera have to take the picture.

I’m doing this with a STM32L0 evaluation board and a Mosfet to turn the system ON/OFF.

Here is the picture of the first prototype (the camera power supply is not yet implemented)

I will write further details and post my script.

[Update 08/2016]

OpenWrt Wireless in station mode

config wifi-device  radio0
	option type		mac80211
	option channel	11
	option macaddr	xx:xx:xx:xx:xx:xx
	option hwmode	11g
	option htmode	HT20
	option disabled 0

config wifi-iface
	option device   radio0
	option network  lan
	option mode     sta
	option encryption psk2
	option ssid     blabla
	option key 	blablabla

basic capture script


echo $(date +%F_%T) "Start script"
gphoto2 --auto-detect

cd /tmp

while ! ping -q -c 1 -W 1 >/dev/null; do
    echo $(date +%F_%T) "wait for connection"

echo $(date +%F_%T) "internet connection ready"

echo $(date +%F_%T) "take photo with gphoto"
gphoto2 --set-config capture="1" --set-config imagesize="2" --set-config imagequality="0" --set-config zoom="7" --set-config meteringmode="0"  --set-config focusingpoint="0" --force-overwrite --capture-image-and-download --filename "image.jpg"

curl -T image.jpg ftp.bla.bla --user bla:bla

echo $(date +%F_%T) "upload to archive"    

now=$(date "+%Y%m%d%H%M")
month=$(date "+%m")
year=$(date "+%Y")
mv image.jpg $now.jpg
curl -T $now.jpg ftp.bla.bla/archive/$year/$month/ --user bla:bla --ftp-create-dirs
rm $now.jpg

echo $(date +%F_%T) "end script"

[Update 05/2017]

Now the script move the picture on the /years/month directory and automatically create the new directory each month.

Some useful link:

[Update 20/08/2016]

Problems with communication between camera and tplink 3420, to solve the problem i removed all the picture from sdCard:

[Update 21/08/2016]

DC supply connector size looks like to be 2.35mm X 0.70mm

ca-ps800 is the original Canon power supply