Skip to main content

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

46
USB Infrared Toy / Hercules + WinLIRC AiO
I encapsulated the serial port in my application following OOP design (.NET), now I can start playing with the nice stuff, and maybe graphics.
47
USB Infrared Toy / Getting RC5 Address:Command from Hex Code
I was trying to decipher how the IR Toy RC5 routine comes up with the hex numbers below, I believe the pause key in my remote is RC5 command number 41 (obtained from LIRC's hex code output):

{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
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
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
Hybrid of PIC18F4520 Dem2PLUS and Low Power Demo Board PIC18LF4520/16F877A Replaceable  -  $24.00

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
Temperature and Relative Humidity Sensor Module  -  $12.00

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
20*4 LCD Display Board with UART Based USB (Edition I)  -  $15.99

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
When WinLIRC is run from a script, it expects WinLIRC.ini & IRToy.dll in the same folder as the script (script's startup folder), instead of WinLIRC's folder. It doesn't matter what you set in WinLIRC.ini.

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
56
USB Infrared Toy / Orange LED?!
Green, blue, even yellow LEDs are the way to go, orange is like in between red and yellow.

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
I want to provide Bluetooth on the cheap to my circuits with a hot-swappable unit that also powers the circuit (what good is Bluetooth if you need to hook up circuit for power?).

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.
59
General discussion / Solar Power Source
What components do I need for a simple solar power source (3.3V, maybe 5V) for use with a breadboard circuit? An example would be powering a Bluetooth 3.3V module.

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01782460192session_write_close ( )...(null):0
20.01812591800ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01812592576Database_MySQL->query( ).../DatabaseHandler.php:119
40.06262731328Database_MySQL->error( ).../Db-mysql.class.php:273