NEW
20 Tracks Sound Recorder
SD CARD
SD Card Data Logger
FAT32 Player ATtiny85/45
CH376 USB Picture Frame
SD FAT32 Player PIC12F1822
W25Q64 Flash Recorder
SD Picture Frame
SD FAT32 TFT Display
Doorbell with SD/EEPROM
SD Talking Clock
SD FAT32 Sound Player Recorder
SD Arduino Recorder
Arduino Picture Frame
Projects Without uControlador
CH341 USB to I2C OLED
CH341 USB to 16x2 LCD
CH341 USB to TFT
CH341 USB Input Output
PC Digital I/O
CH341 Analogue to USB
USB MCP3201 ADC
FREQUENCY COUNTER
OLED Counter ATtiny85
AD9833 Waveform Generator
Chrome Browser Counter
Arduino LED MAX7219 Counter
LCD Accurate Counter
OLED Accurate Counter
MilliHertz Counter
PIC Counter For Android
MAX7219 LED Counter
WiFi Frequency Counter
Frequency Generator
OLED Counter PIC12F629
Talking Frequency Counter
TFT Counter PIC16F628A
SSD1331 Counter PIC16F628A
Arduino Counter for PC
OLED Arduino Counter
TFT 10MHz Counter
PC Counter
LED Counter
Scope Screen Counter
LCD 16 x 2 Counter
6MHz Android Counter
NIXIE Android Counter
Bluetooth Counters
USB Counter PIC18F2550
OBD2
OBD2 RPM meter PIC16F876A
OBD2 Android Rev Counter
OBD2 Diagnostic App PIC/Arduino
OSCILLOSCOPE
Logic Analyzer
PIC12F1822 Scope for PC
Arduino Oscilloscope for PC
Arduino OLED Oscilloscope
Android Oscilloscope
TFT Oscilloscope
USB Oscilloscope PIC18F2550
THERMOMETER
Temperature Controller
Thermocouple 1023 Deg
Thermometer For Browser
OLED Thermometer PIC12F629
OLED Room Thermostat
TFT Clock and Thermometer
LED Thermometer
USB Thermometer
Serial Thermometer
USB DS18B20 Sensor
TIMER / CLOCK
Cuckoo Clock
Real Time Clock DS3231
LED TM1637 Timer
OLED Timer Thermometer
TFT Timer Thermometer
LED Timer
LCD Timer
Talking Clock PIC16F628A
Android Talking Clock
WiFi
WiFi, Ethernet
WiFi Thermometer
WiFi ESP8266
USB
IO for Chrome Browser
USB 16x2 LCD
USB TFT display BMP
USB Meter
USB Input-Output
USB Input-Output Android
DATA ACQUISITION, MISCELLANEOUS
Musical Doorbell
Talk to Arduino
HC-SR04 Sensor
OLED Amp Meter
Water Softener
Solar Charger
Music, Birthday Card
Code Lock
RETIRED
Serial Port
LPT Printer Port
SMALL PROJECTS  
List of Projects Technical Tips  

See also USB inputs outputs without microcontroller: usb_lcd.php and ser3201.php

ANDRIOD INPUTS OUTPUTS FOR PIC16F1827

PIC16F1827 connected to Android USB via OTG cable and UART to USB module. Controls 4 inputs, 4 outputs, and 2 analogue inputs. Switch 4 PIC outputs by the toggle switches and read 4 inputs by the 4 lights, read voltage of 2 analogue inputs. 10 bits analog is transmited in one byte of 7 LSB and another byte of 3 MSB. The Arduino update data every second.
The app is in free program Basic for Android (B4A) https://www.b4x.com/. Transfer APK file to your Android device and install the app by opening the file.
USB-UART can be bought from eBay: https://www.ebay.co.uk/sch/i.html?_from=R40&_trksid=p3519243.m570.l1311&_nkw=usb+to+uart

io usb io

line

PIC16F628 INPUTS OUTPUTS FOR CHROME BROWSER

PC connects to inputs and outputs of PIC16F628A displayed on Chrome browser. PIC inputs HIGH level displayed in green and input LOW level displayed in red. HTML file includes javascript.
Browser can be Chrome, Edge and Opera browsers https://developer.chrome.com/en/articles/serial/#browser-support . Run the PIC connected to PC, open file web_io_628.html in the browser and click Connect.
USB to UART adapter can be bought from eBay: https://www.ebay.co.uk/sch/i.html?_from=R40&_trksid=p3519243.m570.l1311&_nkw=usb+to+uart

io usb 

line

USB HID WITH ANALOUE INPUTS AND DIGITL OUTPUTS

Using PIC18F2550 for connecting analogue and digital signals to USB port . Included 4 app codes and 3 PIC codes: Visual Basic 6 code, VS2005 C++ , VB2010 code and C# codes are based on Microchip code, PIC ASM code, PIC C code for C18 and MPLABX code for XC8. Any app code works with every PIC code. The PIC microcontroller has 10 bit analogue to digital converter. The circuit is powered by the USB. The interface to the PC is HID class.
The inputs and outputs are updated every 10ms.
HID class (human interface device) is a class of devices like the mouse and the keyboard, the data transfer rate is limited to 64KB/S. The PC already has a driver for HID USB.
VB6 code includes guidance to setting up the PC. The PC register the PID and VID (product ID) of the USB device when it's plugged, the VB code uses these ID's to communicate with the device. For commercial VID it is needed to buy it from USB-IF, but in your lab you can use any number.
The source code is derived from freeware from these sources: http://janaxelson.com/usb.htm , http://openprog.altervista.org/USB_firm_eng.html

usb usb

Circuit Description
See also Technical Tips

PIC18F2550
Pins 2-5 are the analogue inputs, voltage range 0 to 5V. Max input voltage is 5.5V . 1K resistors are to protect the PIC.
Pins 25-28 are the digital inputs, TTL voltage levels.
Pins 21-24 are the digital outputs, they can sink or source 16mA.
Pin 14 is 3.3V internal supply for the USB transceiver. 0.22uF is required for regulation.
Pins 15,16 are the data lines to the USB connector on the PC.
Pin 20 is the PC 5V powering the PIC. It is limited to 100mA by the PC. 0.47uF is for decoupling.
For USB wiring info: http://www.interfacebus.com/Design_Connector_USB.html

line

ARDUINO INPUTS OUTPUTS FOR PC

Using PC to connect to Arduino Uno. Included Visual Basic 6 code and arduino code. The VB6 may need an ActiveX file downloaded from Microsoft.
The VB app connects to the Arduino via the COM PORT that the USB drive created and connects the Arduino IDE, when the VB app is running you cannot program the Arduino. You need to enter to the VB app the port number in the way it is done with the IDE.
The app displays 4 analogue inputs A0-A3, 6 digital inputs D2-D7 and 6 digital outputs D8-D13
Code and app for PC Visual Studio 2010 can be downloaded from GitHub:  https://github.com/projects22/Arduino-Input-Outputs-to-PC  app setup is in usb io/publish
You are free to use the Arduino code and the VB software with no limitations.

arduino

line

ARDUINO INPUTS OUTPUTS FOR CHROME BROWSER

Using PC to connect to Arduino inputs and outputs. Digital inputs D2-D5 and digital outputs D6-D9. Arduino inputs HIGH level displayed in green and input LOW level displayed in red. HTML file includes javascript.
The temperature can be displayed in Chrome, Edge and Opera browsers https://developer.chrome.com/en/articles/serial/#browser-support . Run the Arduino connected to PC, open file web_io.html in the browser and click Connect.

You are free to use the Arduino code and the VB software with no limitations.

arduino

line

ARDUINO INPUTS OUTPUTS FOR ANDROID USB

Arduino connected to Android USB via OTG cable, controls 4 inputs, 4 outputs, analogue inputs and temperature sensor DS21B20. Switch 4 Arduino outputs by the toggle switches and read 4 inputs by the 4 lights, read voltage of 2 analogue inputs. The Arduino update data every second.
The app is in free program Basic for Android (B4A) https://www.b4x.com/. Transfer APK file to your Android device and install the app by opening the file.

3 io

line

ARDUINO INPUTS OUTPUTS FOR ANDROID BLUETOOTH

Arduino connected to Android USB via HC-05 Bluetooth module, controls 4 inputs, 4 outputs, analogue inputs, temperature sensor and analogue output (PWM). Switch 4 Arduino outputs by the toggle switches and read 4 inputs by the 4 lights, read voltage of 2 analogue inputs. The Arduino update data every second.
The app is in free program Basic for Android (B4A) https://www.b4x.com/. Transfer APK file to your Android device and install the app by opening the file.

 arduino

Circuit Description
See also Technical Tips

4K7 is a pullup for DS18B20
1K is to reduce the 5V output of Arduino to 3.3V RX input of the HC-05.
HC-05 is not used in USB interface, connect Arduino to Android device using OTG cable.
All inputs or outputs are optional.



Write a comment

iconFlag Countermoty22.co.uk  2008-2024