You are on page 1of 6

Oscilloscope BT

Hardware requirements to build oscilloscope :

STM32F103C8T6 ARM STM32 Minimum System


Development Board
Available on ebay , price 2.55 €

HC-06 Transceiver Bluetooth (3.6v to 6v)


Available on ebay , price 4 €

Charger for batteries USB 5V 1A


lithium 3.7V
Available on ebay , price 1 €

(3 items) Resistors 1/4W 1%


820K – 1 item
207K – 1 item
164k – 1 item
Available on ebay , price 0,5€

BNC Connector - Female


Available on ebay , price 1€

Slide switch 1 pole 2 positions


2 items
Available on ebay , price 1€

ULTRAFIRE 18650 Li-Ion battery


5800 mAh
Available on ebay , price 1,8€

Hardware requirements for programming :

USB To RS232 TTL Chip Converter Adapter


Module
Available on ebay , price 1,5€
Required software

Arduino IDE
https://www.arduino.cc/en/Main/Software
STM32 Flash loader demonstrator (windows)
http://www.st.com/content/st_com/en/products/development-tools/software-development-
tools/stm32-software-development-tools/stm32-programmers/flasher-stm32.html
stm32flash (linux)
https://sourceforge.net/projects/stm32flash/
stm32file (bin stm32 file)
https://drive.google.com/open?id=0By3VQDwedQr2YUE3TWx2bWpqSTA

Setting HC-06 module

Connect the HC-06 module with USB to TLL module :

Connect the USB to TTL converter to the USB port of your computer and start the Arduino IDE.

1.From “Tools” menu


select “Serial
monitor” :
From serial monitor you can communicate with HC-06 module , send the following commands :

AT (module responds OK)


AT+NAMEandroidoscope (Setting name “androidoscope”, module responds OK)
AT+BAUD8 (Setting 115200 bps, module responds OK)

Link video

Programming STM32

Connect the STM32 module with USB to TLL module :

jumper 1 jumper2

While programming, you must move the jumper 1 from default position "0" to "1".

1)Connect Adapter Module to usb


2)Open a Linux terminal (for windows: you must run STM32 Flash loader demonstrator )
3)Run the following command :
stm32flash -u /dev/ttyUSB0 (Disable the flash write-protection)
stm32flash -k /dev/ttyUSB0 (Disable the flash read-protection)
stm32flash -w stm32file /dev/ttyUSB0 (Write flash from file stm32file)
4)Disconnect Adapter Module

Now you must move the jumper 1 from position "1" to "0".

Link video
Oscilloscope wiring diagram

It is advised to put everything inside a plastic box case. From box case must be accessible:

. BNC Connector
. Slide switch (on/off)
. Slide switch (gnd/dc)
. Micro USB (charging the battery)

GND/DC

207K

820 K 164K

Oscilloscope specifications

Accuracy: 12 Bit
Max input voltage +15V / -15V (30Vpp) probe 1:1
Coupling modes GND / DC
Input impedance ~ 1M
Vertical Sensitivity from 0.5V/div to 3V/div
Horizontal Time Base Range from 60uS/div to 9mS/div
Analog Bandwidth ~ 20Khz
Supply Voltage 3.7V

App Oscilloscope BT

Oscilloscope BT app provides a simple and intuitive interface for your oscilloscope. The features
are the following :
1) Trace display
2) Trace saving
3) Trigger mode(no trigger , up trigger , down trigger , single sequence up, single sequence down,
acquire)
4) Setting V/div
5) Setting T/div
6) Offset compensation
7) Setting trigger level (positive/negative)

Bluetooth connection
On/Off
Exit app Offset compensation

Trigger mode
Acquire

Trigger level

Setting trigger level

V/div – Vertical drag screen for setting

Click to save trace


T/div- Horizontal drag screen for setting
How to use Oscilloscope BT

1) Fully charge the battery. Full charge is indicated by the green LED (on the charging module )
2) Power on oscilloscope and switch to GND mode coupling .
3) Run on Android device "Oscilloscope BT" app.
4) Connect Android device and oscilloscope with bluetooth.
5) Select 0.5v/div on "Android Oscope" app.
6) Start offset compensation (so as to bring the trace to the center of the graph).
7) Oscilloscope is ready.

Link video

"Oscilloscope BT" app is available on Google Play Store at this link :

You might also like