46
Topics
This section allows you to view all Topics made by this member. Note that you can only see Topics made in areas you currently have access to.
Topics - liyin
47
USB Infrared Toy / Getting RC5 Address:Command from Hex Code
{05}{69}{00}{00}{00}{00} {05}{69}{00}{00}{00}{00}
05 = VCR
69 = Pause?
Code: [Select]
void ProcessIR(void){
static unsigned char i;
//static unsigned char rc5x, toggle, addr, cmd;
if((decoderState==SEND) && (USBUSARTIsTxTrfReady())){
//process IR data (decode RC5)
//rc5x=irToy.s[0]; //0 second start bit, use below
//toggle=irToy.s[1]; //1 toggle bit, discard
...
//irToy.usbOut[0]=addr; <=== addr
//irToy.usbOut[1]=cmd; <=== cmd
irToy.usbOut[2]=0x00;//four extra bytes for 6 byte IRMAN format
irToy.usbOut[3]=0x00;
irToy.usbOut[4]=0x00;
irToy.usbOut[5]=0x00;
putUSBUSART(irToy.usbOut,6);
...
}
}
48
Project development, ideas, and suggestions / expandIO-USB
Driver-free USB I/O expander for software-controlled peripherals
www.firmwarefactory.com/expandIOUSB.aspx
expandIO-USB is an ultra-low cost USB I/O expander. It allows a PIC microcontroller to be remotely controlled via USB, significantly reducing time-to-market for simple USB-based products. Interface options include I2C and SPI serial communication to slave devices, making it ideal for adding ultra-low cost USB interfacing to a wide variety of sensors.
expandIO-USB uses the Human Interface Device (HID) USB profile. It does not require USB drivers and so is immediately plug-and-play compatible with present and future Windows, Linux and Mac operating systems.
expandIO0USB is firmware for the PIC18-F14K50, LF2450, LF2455, LF4450 and LF4455 microcontrollers and is available as a pre-programmed chip from electronics distributors or as a firmware download from www.hexwax.com.
5-Minute Product Training Module
Datasheet
49
Project development, ideas, and suggestions / eZ430-Chronos Wireless Watch Development Tool
The eZ430-Chronos is a highly integrated, wearable wireless development system based for the CC430 in a sports watch. It may be used as a reference platform for watch systems, a personal display for personal area networks, or as a wireless sensor node for remote data collection.
Quote
TI makes this awesome 16 bit microcontroller family based on the MSP430 chip. One variant of that chip is the CC430, which has wireless embedded in the package.
The chronos is a "development board" that they sell for 49 bucks. It comes in a wrist watch form factor (which I use everyday, it's even fashionable outside the geek world :-)) It also comes with two USB dongles, one for the JTAG (programmer) and another one is the wireless counterpart.
One of the examples in the devboard is controlling the mouse wirelessly using the watch, which is pretty cool. The watch also comes with accelerometer, barometer (altitude) sensor and thermometer.
50
Project development, ideas, and suggestions / Sure's Hybrid PIC18F4520, PIC18LF4520/16F877 & AVR ATMEGA16 Dev Boards
Quote
PIC18F4520-I/PT microchip can be replaced by PIC18LF4520 or 16F877A microchip helping you familiar with more PIC architectures.

AVR ATMEGA16 Dem2 Demo Development Board LCD & USB - $19.99
Quote
This demo board provides the application designer with a low cost development tool to become familiar with ATMEGA16 architecture, high performance peripherals.
51
Project development, ideas, and suggestions / Sure's Temperature & Relative Humidity Sensor Module
Quote
A perfect PIC16F690-HS1101-based humidity and temperature module that can be used in many applications to meausre temperature and relative humidity.
Please make sure the CS pin has been set at high level in UART mode. And the baud rate is 9600 bps. If you want to learn more:
http://www.sure-electronics.net/download/index.php?name=DC-SS500&type=0

52
Project development, ideas, and suggestions / Sure's 20*4 LCD Display Board with UART Based USB
Quote
It's easy for someone who doesn't know anything about programming, the sync program is available from:
http://www.sure-electronics.net/download/index.php?name=DE-LD021&type=0
It works as a virtual com port. You may download the driver from:
http://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx


53
USB Infrared Toy / Running WinLIRC From Script Issue
I copied the files to WinLIRC's folder and set the plugin's path in WinLIRC.ini, but it didn't work (Plugin & RemotePlugin). Only the RemoteConfig path seems to work.
Code: [Select]
[IRToyPlugin]
ComPort=6
[WinLIRC]
RemoteConfig=C:Program FilesWinLIRCRC5.txt <=== This path works!
Plugin=IRToy.dll <=== This path does nothing!
DisableKeyRepeats=0
DisableFirstKeyRepeats=0
54
USB Infrared Toy / WinLIRC 0.8.6b Configuration



55
USB Infrared Toy / [solved] IR Toy Stopped Working (Firmware v1.04 bugs?)
56
USB Infrared Toy / Orange LED?!
The black PCB in a small board doesn't say much, but black looks better than green, and we can't have all PCBs red, right? ( ... blue?).
The metal casing of receiver plus black PCB is kind of retro, but maybe it is of better quality, is like the Honda Element, you get to like it in time. I need to make a case for this, hopefully my rotary tool will ship soon.
57
Project development, ideas, and suggestions / Parts for Solar/Bluetooth Hot-Swappable Unit
Right now I'm still working on what parts (breakout boards could make things easier) do I need for the LiPo charger and the logic level converter.
[Solar Panel (0.5W?, ?mA)] => [3.3V Step-Up DC-DC Converter] => [LiPo Charger]
=> [LiPo Battery (3.7V?, ? mA)] => [MDFly's Bluetooth Module (SPP, TX/RX)]
<=> [Logic Level Converter (3.3V <-> 5V TX/RX)] => [TX/RX/Vcc/GND Header/Cables] <=> [Circuit]
Bluetooth/Power Enclosure <=> "Circuit" Enclosure
I could probably run the circuit whenever possible @ 3.3V and do without a logic level converter, simplying things, but I need to plan for other situations if it isn't too much trouble.
[hr:][/hr:]
So far I have found:
0.5w Solar Panel3.3V Step-Up BreakoutBluetooth TTL ModuleLogic Level Converter



Have some issues with the logic level converter, but will know more after we find out if the BT module signals are LVTTL compatible.
58
General discussion / Where Can I Get This?
59
General discussion / Solar Power Source
60
Project development, ideas, and suggestions / Microchip Product Selector Tool
http://www.microchip.com/productselector/MCUProductSelector.html