電子學作業(Electronics H.W.)
Home Work (Ch.1)
Exercises: 1.2, 1.3, 1.10, 1.15, 1.19, 1.22, 1.24, 1.25, 1.35, 1.36.
解答 :
http://www.mediafire.com/view/523ipx4365s92c5/EXERCISES_CH1.pdf
2014年10月27日 星期一
2014年10月26日 星期日
Microelectronics Circuits CH2 OPA 2014-10-27
Microelectronics Circuits CH2 OPA 2014-10-27
Sedra/Simth
Microelectronics Circuits
CH2 OPA
http://www.mediafire.com/view/w17qdn7u4wy2797/ch2_2014-10-27.pdf
2014年10月21日 星期二
電子學作業封面 2014-10-22
公布 電子學作業封面
http://www.mediafire.com/view/vumpbsqdsfph3sa/pta_1040_333031_56634(å°é¢).doc
http://www.mediafire.com/view/vumpbsqdsfph3sa/pta_1040_333031_56634(å°é¢).doc
2014年10月19日 星期日
Microelectronics Circuits CH2 OPA 2014-10-20
Sedra/Simth
Microelectronics Circuits
CH2 OPA
http://www.mediafire.com/view/nc61918t0g0872h/ch2_2014-10-20(2).pdf
2014年10月17日 星期五
TLC5940 PWM Driver
TLC5940 PWM Driver
Think of it like a shift register for Pulse Width Modulation (PWM).
The TLC5940 chip allows you to drive 16 Pulse Width Modulation PWM pins from 1 PWM and 4 control lines. Sort of like a serial-in, parallel out shift register, the TLC5940 gives 16 12-channel PWM outputs using only 5 lines on the microcontroller. We use these chips in our RGB flower necklace, to light up vibrant rainbow color around your sweetheart's clavicle. There is a great library to control these chips available for arduino. Another nice feature of these chips is they allow daisy-chaining. Want to see a tutorial about daisy-chaining TLC5940's? Let us know in the comments!
TLC5940 Driver and Module Video
Video demonstrating 4 TLC5940 modules being driven by an Arduino clone. As the potentiometer spins the speed of the rainbow changes. The second part of the video shows the tree PCB with its 16 LEDs also powered by a TLC5940.
Code
This code uses the TLC5940 arduino library available here. It also uses our arduino color library available here. The code outputs a rainbow to five RGB LEDs hooked up to the TLC5940.
/* LucidTronix HSB RGB necklace * uses TLC5940 chip. for details see: * http://www.lucidtronix.com/tutorials/6 * Control rgb color by specifying * Hue saturation and brightness. * This code shows a rainbow. * It is okay to daiy-chain the chips * just change the NUM_TLCS constant * in the Tlc5940.h file. * This code uses an arduino color library * available here: * http://www.lucidtronix.com/tutorials/19 */ #include "Tlc5940.h" #include "tlc_fades.h" #include "color.h" // how many millis to strobe over all the LEDs TLC_CHANNEL_TYPE channel; Color cur_color(1,1,1); int scope_period = (200 * NUM_TLCS); int led_period = scope_period / (NUM_TLCS * 16); float hue = 0; void setup() { Tlc.init(); } void loop() { hue += 0.001; if ( hue >=1 ) hue = 0; float sat = 1.0; float val = 0.5; cur_color.convert_hcl_to_rgb(hue,sat,val); uint32_t lastMillis = millis(); int cur_val = channel % 3; int color_component = 0; if ( cur_val == 0) color_component = cur_color.red*16; else if ( cur_val == 1) color_component = cur_color.green*16; else if ( cur_val == 2) color_component = cur_color.blue*16; tlc_addFade(channel, // led channel color_component, // start fade value (0-4095) color_component, // end fade value (0-4095) lastMillis + 2, // start millis lastMillis + (uint16_t)scope_period / 4 // end millis ); if (channel++ == NUM_TLCS * 16) { channel = 0; } uint32_t currentMillis; do { currentMillis = millis(); tlc_updateFades(currentMillis); } while (currentMillis - lastMillis <= led_period); }
Parts
Title | Description | # | Cost | Link | Picture |
TLC5940 | IC LED DRIVER PWM CONTROL 32-QFN Value: 3 V ~ 5.5 V | 1 | $3.37 | Link | |
ATMEGA168A-AU | IC MCU AVR 16K FLASH 32TQFP Value: 1.8 V ~ 5.5 V 20MHz | 1 | $2.43 | Link | |
Potentiometer | POT ROTARY, Linear 10K OHM 9MM SNAPIN Value: 10k | 1 | $0.76 | Link | |
RGB LED | LED RGB SMD DIFF 4-PLCC Value: 1.9V Red, 3V Green, 3V Blue | 5 | $0.55 | Link | |
Switch | SWITCH SLIDE DPDT 6VDC 0.3A SMT Value: DPDT | 1 | $0.44 | Link | |
LED SMD | LED 3X1.5MM 568NM Green Clear SMD Value: 2.2V Green | 16 | $0.18 | Link | |
Button 6mm Through Hole | Tactile Switch Through Hole SPST-NO 0.05A 12V Value: 0.05A @ 12VDC | 2 | $0.1 | Link |
Rainbow flower necklace using the TLC5940....
RGB Flashlight, wearable sound art, rainbow lamp....
Wearable digital compass displays the direction in green LEDs....
32 buttons for a fully-functioning hand-held USB keyboard....
Write messages on Liquid Crystal Displays with potentiometers or keyboards....
Control a 120v outlet with a 5V arduino....
Handheld gaming machine, based on the Arduino Leonardo, equipped with joystick, SD card and more....
An arduino library for the MMA8453 Triple Axis Accelerometer...
訂閱:
文章 (Atom)
113 學年度第 1 學期 RFID應用課程 Arduino程式
113 學年度第 1 學期 RFID應用課程 Arduino程式 https://www.mediafire.com/file/zr0h0p3iosq12jw/MFRC522+(2).7z/file 內含修改過後的 MFRC522 程式庫 (原程式有錯誤) //定義MFRC522...
-
python pip 不是内部或外部命令 -- 解決方法 要安裝 Pyqt5 1. 首先,開啟命令提示字元。 2. 輸入 pip3 install pyqt5 好像不能執行 ! ! 錯誤顯示 : ‘ pip3 ’ 不是內部或外部命令、可執行的程式或批...
-
課程講義 下載 11/20 1) PPT 下載 + 程式下載 http://www.mediafire.com/file/cru4py7e8pptfda/106%E5%8B%A4%E7%9B%8A2-1.rar 11/27 2) PPT 下載...
-
• 認 識 PreFix、InFix、PostFix PreFix(前序式):* + 1 2 + 3 4 InFix(中序式): (1+2)*(3+4) PostFix(後序式):1 2 + 3 4 + * 後 序式的運算 例如: 運算時由 後序式的...
Comments: