![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| Well now that I have my Junebug operational, I've been reviewing my next little toy. I've talked to the kids and we have plans to use one of the USB enabled devices with a bootloader to make a small device that will be "field programmable". The plan is to use up as many of the spare parts that I've been amassing in the basement. Keeping in mind that I'm more of a software hacker, I would appreciate feedback as to any obvious "gotcha's" in the following design. Thanks | |
| |
| | (permalink) |
| It's hard to read your schematic but from what I can make out it looks fine. The only slight changes I would make are, make the LCD contrast a preset and maybe move the tacho to a pin that can count (ccp1 or timer1/3 external clock. Mike. | |
| |
| | (permalink) |
| Is that a resonator with caps? or a crystal without caps? Use a crystal, there will be a table of USB OK crystal speeds in the datasheet. USB has to be 96MHz (that's a PLL value) Up your MCLR pullup to 22K or add a diode in series with the 4.7K Your IR detector would be happier with 100ohm & a small cap 4.7uf on its VCC (Junebug schematic shows this) Your fan may need a 1N4001 clamp diode. Recommend you add an ICD (Junebug) connector, MCLR, RB6, RB7 will make debugging / programming MUCH easier. Swap the IR_DATA with FAN_TACH (you'll have to disconnect the fan tach to program/debug) or some other high impeadance pin. OR GND the RW pin on the LCD, and move the FAN_TACH to TMR0 (RA4) it's a counter! You don't need R4 (just set the PORTB pullup in software) A ferrite bead on the USB power pin to VDD also recommended. I remember Elektor made an automatic LCD contrast with a TL431 shunt. Last edited by blueroomelectronics; 8th April 2008 at 06:04 AM. | |
| |
| | (permalink) | |
| Quote:
Most use D4~D7 instead.
__________________ L.Chung | ||
| |
| | (permalink) | |
| Quote:
As he is using the LCD R/W line, [ to test BUSY on D7, I expect] I agree with your comment.
__________________ Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ | ||
| |
| | (permalink) |
| Thanks everyone. LCD 4..7 vs 0..3 - Good CATCH!! Bill. The "plan" was to not require ICD as I was going to use a USB bootloader. The part will be flashed once with the bootloader, and then installed into a socket on the board. If/when I go to surface mount parts, I would include an ICD header. I was thinking crystal resonator with caps.. saw this being done on a similar board (Usb <--> LCD thingy.. at Sparcfun I think) I will be proto-typing the fan/clamp diode etc, so thanks for the heads up. Will trial it all before attemping to layout my board. Will read up on the "counting" capablities. Thanks again... everyone. | |
| |
| | (permalink) |
| I would get rrid of the BJT / Base resistor combo and instead use a logic level FET and a small pull down to bleed off any gate charge. You won't have a drop across the FET (or at least not one that is 0.7V) so you won't get as much heat or waste. Secondly, those Vishay IR demodulators are very good and very sensitive. Just to make sure you don't have any noise across it, I would put a cap close to it across its power. You can always no-pop it when you spin the board but if you find you need it later and didn't plan for it, things are more difficult. | |
| |
| | (permalink) |
| Thanks Crust.. heck of a good idea to plan for the extra pins. I think I will plan for the ICD header as well.. (can always leave it depopped) | |
| |
| | (permalink) |
| Pommie, What made it "hard to read" for you? Is this a physical "image" issue? or something in the way I presented the information? (Always learning) | |
| |
| | (permalink) |
| Maybe I am not seeing it, but you also usually need a pullup on the I2C bus. | |
| |
| | (permalink) |
| Yep you'll need a pullup or two on the I2C bus. Also many resonators are not very accurate, I've not looked at the Sparkfun USB board though. | |
| |
| | (permalink) |
| | |
| |
| | (permalink) |
| Are you building a thermostat? | |
| |
| | (permalink) |
| Yeah.. I guess.. sort of. We have a bunch of LCD's that fit "exactly" into the opening window of a 3.5" drive opening of a 5.25" drive bay. (You know.. the plastic flange that went on the front of a 5.25" bay) We wanted to get that working, and as I have a bag of fans here, thought we could have the device PWM control the fan speed. But lo and behold, I had some I2C temp sensors, so thought to throw those on as well.. and some neat pacakges with multiple LED's. Great fun bit twiddlers everywhere. I was aware of the USB bootloader option of the "bit whacker" and thought it would be ideal for my kids to try their hand at breaking^H^H^H^H^H^H programming these devices. Then my son asks how will he tell it what to do? So we came up with IR remote receiver as an input device. Yep.. I actually had to *PAY* for those. Everything else has been in house (basement) or sampled from the fine people at Microchip. Pretty much the progress so far... | |
| |
| | (permalink) |
| Oh.. there's also the step of trying to make a board that will fit across "behind" the LCD and mounting the LED's and IR sensor on "either side" of the LCD. Which means I would be outside the size of the "free use" area on Eagle. Just one of the many hurdles coming my way. | |
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Title | Starter | Forum | Replies | Latest |
| Schematic Reading Help | tazman2087 | General Electronics Chat | 38 | 2nd July 2008 02:48 AM |
| need schematic urgently | ycxxi | Datasheet/Parts Requests | 5 | 3rd December 2007 07:32 PM |
| OP AMP : Virtual Ground and feedback. | lord loh. | General Electronics Chat | 7 | 5th August 2005 05:07 PM |
| Current feedback ??? | mstechca | General Electronics Chat | 1 | 15th March 2005 12:51 AM |
| RC Servo, Measuring feedback and current | lompa | General Electronics Chat | 8 | 5th February 2005 09:17 AM |