Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

PWM controlls, best chip for several at once? AVR or PIC

Status
Not open for further replies.
It works exactly the same with the positive and negative reversed. does this mean that from a micro controller I would just need to put that pin low (or high if that was opposite to the base pin) to display, and then set the pin high (or low) to clear?

Static LCDs are supposed to driven with AC; for a segment to be on, the signal on its pin will be having opposite polarity to the respective common pin, or a segment to be off, the signal on its pin will be the same as the backplane/common. Attempting to drive segments with DC will degrade the LCD.

A couple of links that may help:
Static Driven LCD Technology
**broken link removed**
**broken link removed**
 
Look like a real pain to drive directly. Especially if it's multiplexed display.
 
Last edited:
Look like a real pain to drive directly.

No doubt it's more effort than required, a simple serial interface to a PC would be better for debugging.

Especially if it's multiplexed display.
I don't think the one he showed is multiplexed - due to the large number of pins and only 4 segments, it's likely a direct drive type, i.e. shared common, every segment mapped to a pin.

My opinion is that it's not worth the effort, except as a learning exercise. You might find that it complicates your project somewhat.
 
Have a look around some junk stores etc, just about every old fax has a 1x16 char LCD text display or a 2x16. These are a standard 14-pin pinout, use 5v supply and are easy to drive, even in assembler.

Ohterwise you can get a 1x16 or 2x16 from Ebay for about $10 ??
 
For an inexpensive ($2) LCD 1x24 char display look at thread
https://www.electro-tech-online.com/threads/problem-with-interfacing-lcd-module.89605/#post702746
humidity-proto-005scale-jpg.26723
 
Thanks for all the replies. I'm interested in this:
No doubt it's more effort than required, a simple serial interface to a PC would be better for debugging.
Thats definetly something I would like to learn to do anyway. I'm going to look up what I can on this, but if you want to link me to any usefull info on it that would be apriciated.
 
Thanks for all the replies. I'm interested in this:

Thats definetly something I would like to learn to do anyway. I'm going to look up what I can on this, but if you want to link me to any usefull info on it that would be apriciated.

Check my tutorials, they show how to do simple serial to a PC (or anything else) - I often use such a scheme for debugging. An even simpler technique is to use a resistor and LED connected to a pin, and switch it ON and OFF at certain points through the program - obviously this can't display as much information though.
 
I've been doing that actually, but like you said it is limited. Now that I'm going to be trying to figure out if its reciving ranges correctly and setting up A/D inputs a bit of a clearer view of whats going on could really help. I'll definitely check out your tutorial and see if I can get it running that way when I get home. I actualy have some various size male serial ports with pinch pins and some awg 22 that I could wire them to a bread board with, so if the software side of it isnt too tough hopefully I'll have it working soon.
 
I've been doing that actually, but like you said it is limited. Now that I'm going to be trying to figure out if its reciving ranges correctly and setting up A/D inputs a bit of a clearer view of whats going on could really help. I'll definitely check out your tutorial and see if I can get it running that way when I get home. I actualy have some various size male serial ports with pinch pins and some awg 22 that I could wire them to a bread board with, so if the software side of it isnt too tough hopefully I'll have it working soon.

The software side is dead easy, and by using a software UART you can use any output pin.
 
They can typically be used for crude graphics if it has character generator ram as well. In an emergency if the char ram isn't used the micro controller can use it.
 
For an inexpensive ($2) LCD 1x24 char display look at thread ...

Looks good even with the 0.05" pitch, but the link that was selling the LCD's is gone;

Picture of the display:
**broken link removed**

Maybe they run out.
 
It could be a bit tough to debug my work when the pic software, the hardware and the PC program are all in question. does anyone know of a premade applet out there that will work with the serial port and display what it recives? Anything you have that can send data packets would be usefull too.
 
What programmer are you using?
The PICkit2 supports Debug on the 16F916 and has a built in UART tool. Pretty handy.
 
Last edited:
Right now I still have that cheap JDM programmer. I've been meaning to upgrade to a pickit2, but I so far don't know what the difference is between all the pickit2 versions, so I haven't ordered one yet.

The junebug is your current main PIC programmer right? I might go ahead and get one of those. Being able to talk to the guy who designed it and get support here seems like a bigger advantage than I can see with any of the other models.
 
Last edited:
Yes the Junebug is my best seller by far. It's a PICkit2 minus the variable 100mA VPP supply and I/O clamps (so it's 5V only) and internal EEPROM this was done to keep costs & kit complexity down. All parts are through hole so it's easy to build and repair.
The Tutor was added as when I sold the Inchworm the first thing most people that bought one didn't know what to do next. So I included a small but very capable 18F1320 with a handful of switches / LEDs / pots carefully selected to demonstrate PIC I/O as best I could.
The tutor can be disabled so the Junebug works as a standalone programmer / debugger.
 
Last edited:
You should think about doing an SMD version blueroom. The cost savings for using SMD components will probably offset assembly costs. While through hole isn't dead, it's costly compared to SMD.
 
The only reason I dont use SMD components much is that theyre tough to prototype with. But I suppose if it were a kit that came with a board surface mount stuff would be fine.
 
The space savings on the PCB's, and the lower cost would make up for any down sides, even if you had to pay someone to assemble them.
 
Actually the next few kits will have some SOIC LM75 temperature and one TSOP 18F Ethernet (blech not a fan of solder those)
 
Last edited:
when are they going to make something that works like a printer but you load in some surface mount parts and solder instead of ink, and a board instead of paper, and it makes your board? Maybe I'll try it when I get a whole lot more advanced at making CNC machines.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top