Skip to main content

Posts

Showing posts with the label FT232

HC-06 Bluetooth module programmer

HC-06 is a quite popular slave mode Bluetooth module designed for wireless serial communication. This module can pair with PC, mobile phone or with any master mode Bluetooth peripheral. HC-06 Bluetooth module This simple .net framework based application can use to modify the following parameters of the HC-06 Bluetooth module: Bluetooth display name Pair password BAUD rate Parity check type HC-06 Bluetooth module programmer This application communicates with the HC-06 module through COM port. To emulate the COM port using any Windows compatible USB to Serial converter . While at the testing we try the following modules with this application: FTDI FT232 USB to Serial module CH340 USB to Serial module CP2102 USB to Serial module This application is developed using .net framework 4.5 and Visual Studio 2012. All source code and compiled binaries are available to download at https://github.com/dilshan/hc6-config . This application and its source code are distrib...

ZFM-20 fingerprint capture library

ZFM-20 is an optical fingerprint sensor module series developed by Zhiantec . Resolution of these fingerprint modules are 256×288 pixels and depending on the module it can be accessible over UART or USB interfaces. Other than capturing fingerprints this module has inbuilt DSP to process and verify captured fingerprints. This ZFM-20 fingerprint library is developed to capture and retrieve fingerprint images from the above sensor module. The main purpose of this library is to use ZFM-20 sensor with PC as a low-cost fingerprint capture unit and because of that, in-module fingerprint processing and verification functions are not implemented in this library. ZFM-20 fingerprint sensor test setup with CH340G serial to USB converter. ZFM20-LIB is x86 native shared library and it's implemented using Lazarus / FPC . This library is developed to use with most of the programming languages which including C , C++ , Delphi , FPC , Microsoft .net framework based languages, etc. Objec...

USB to 3.3V - 5V serial TTL adapter

This post is about experimental USB to 3.3V/5V serial TTL adapter which we build recently to work with both 5V and 3.3V MCUs. This project is mainly based on CH340G seral-USB chip. CH340G is cheap and commonly available serial-USB convert IC and now it's commonly found on Chinese versions of Arduino development boards. FTDI's FT232 is another possible alternative for this kind of project, but we drop it because of its famous device driver base chip locking issues . Also, compare with FT232, CH340G is cheap, commonly available and simple to construct with a minimum number of components. In this module, we incorporate a 5V/3.3V voltage selector switch to avoid interface matching issues due to different voltage levels of mainboard/MCU and serial TTL adapter. A prototype version of CH340 USB to serial adapter. In prototyping stages, we use CH340G with breadboard by using SO-16 to DIP16 adapter and supplied PCB is also based on using the same adapter. Except for CH340G ...

Essential USB Specifications and Develop embedded systems with USB

Universal Serial Bus (USB) allows peripherals and computers to interconnect using standard protocol and provide plug and play feature to the devices. At the moment there are 2 specifications available for USB they are, USB 1.1 : In this specification data transfer rate is 12Mbps and 1.5Mbps. USB 2.0 : Support data transfer rate up to 480Mbps. Both these specifications support up to 127 devices and support for hot swapping (no need to power down to remove or connect the devices). In USB devices are categorized as a classes and each class represent the functionality that target device can provided to the host device. For example: AUDIO : Audio and related systems HID : Human Interface Devices. (E.g: Keyboard, Mouse, etc) POWER: Devices related with the power such as UPS systems. IrDA: Infrared devices. There are 4 types of transfers take place over USB, Control transfer : Used to configure the bus and devices on the bus. Bulk transfer : Move data asynchronously over USB. Isochron...

Design USB Devices and interface them using Delphi

According to my experiences USB devices are bit complicated to design and writing software (drivers and support applications) for USB devices are time consuming and complex process. Most recommended (and easiest) method to design hardware interface for USB port is using Future Device Technologies FT245 or FT232 chips. At the moment both these chips support for USB 2.0 and have excellent set of APIs. To test the performance of this device I implement some experimental version of PC oscilloscope using FT245 USB Interface, AD7575 ADC, LF347 Op-amp, 4069 Hex Inverter and array of AM7205 FIFOs. Application program is design using Delphi 7 and it is totally based on FTDI Delphi APIs. This test system is worked perfectly in Windows XP and Windows 2003 systems during my test runs and produce excellent results. I choose FT245 for this design because it has 8 parallel input interfaces and this is perfectly matched with AD7575 ADC. (AD7575 also have 8 parallel outputs) I use 2705 FIFOs to captur...