What's with the purple spots? Did he expose his camera to too much UV-light?
[QUOTE=DrLuke;33093135]What's with the purple spots? Did he expose his camera to too much UV-light?[/QUOTE]
Laser damage I believe.
[QUOTE=Chryseus;33090164]There is a list of some useful stuff in the OP.
As for circuit simulators the free Java Circuit Simulator is great for testing simple things, other better simulators I can recommend are Qucs, LTSpice and Multisim 10 (non-free) but nothing beats doing it yourself and seeing the results, simulators are not perfect.[/QUOTE]
I mean specifically arm simulators
You usually dont simulate microcontrollers or microprocessors, just get a dev board and see what it does.
But if you really have to simulate it I [url=http://www.crossware.com/arm/simulator.htm]guess[/url] there [url=http://simit-arm.sourceforge.net/]are[/url] some.
I once downloaded an AVR simulator on linux (it was in the package sources), but it was rather complicated.
I needed some help from any folks using the AVR line of microprocessors, I'm still new to all of this so I was hoping someone knew how to attach an external 16mhz crystal to an ATmega328. I have the parts, just not sure how to do it and how to set fuse settings so that it would work. Anyone know?
Edit:
And another question, if I need to use a 22 pf capacitator, but I have none on hand, can I use a 1 uf cap instead?
[QUOTE=amazer97;33110841]I needed some help from any folks using the AVR line of microprocessors, I'm still new to all of this so I was hoping someone knew how to attach an external 16mhz crystal to an ATmega328. I have the parts, just not sure how to do it and how to set fuse settings so that it would work. Anyone know?
Edit:
And another question, if I need to use a 22 pf capacitator, but I have none on hand, can I use a 1 uf cap instead?[/QUOTE]
Connect the crystal between the XTAL1 (PB6) and XTAL2 (PB7) pins, add two 10-22pf (22pf preferable) caps to ground (one on each side of the crystal)
And no you can't use a 1uF cap.
As for setting the fuses use this: [url]http://www.engbedded.com/fusecalc/[/url]
You want External Crystal Osc 8.0 - MHz 1k CK/14 CK + 65ms and CKDIV8 to be unset.
Don't touch anything else or you may brick it.
Another question if its not too bothersome. I recently got an ATMega328, and I wired it up through a serial port to my desktop the same way I did with my ATTiny2313, but the ATMega328 is behaving strangely for some reason. Everything worked perfectly on my 2313, with data being sent perfectly back and forth, but on my ATMega it either sends random ASCII symbols, or when I press on the RX/TX wires it begins spewing out ASCII symbols as well. I have it sending at 4800 bps with a 0.2% failure rate, just like the 2313, so it should be working. I also enabled everything and soldered it correctly. Could it be power problems (flickering power) or something?
It can be any number of things. Could you possibly provide a little diagram showing exactly how everything is connected, as well as the code you use?
Sounds like a code problem to me
[CODE]#include <avr/io.h>
/* Prototypes */
void InitUART(unsigned char baudrate);
unsigned char ReceiveByte (void);
void TransmitByte(unsigned char data);
void InitUART(unsigned char baudrate)
{
//UBRR0H = (unsigned char)(baudrate>>8);
UBRR0L = (unsigned char)baudrate;
UCSR0B = (1<<RXEN0)|(1<<TXEN0);
/* Set frame format: 8data, 2stop bit */
UCSR0B = (1 << UCSZ01) | (1 << UCSZ00);
}
/* Read and write functions */
unsigned char ReceiveByte(void)
{
/* Wait for incomming data */
while (!(UCSR0A & (1 << RXC0)))
{
}
/* Return the data */
return UDR0;
}
void TransmitByte(unsigned char data)
{
/* Wait for empty transmit buffer */
while ( !( UCSR0A & (1<<UDRE0)) )
{
}
/* Put data into buffer, sends the data */
UDR0 = data;
}
int main(void)
{
InitUART(12);
while(1)
{
TransmitByte('a');
}
} [/CODE]
I'll draw up a diagram later, but here is the code for now.
Well the really easiest way to tell if it's your hardware would be to hook up an arduino to the RX and TX line and see if anything is coming through.
[QUOTE=DrLuke;33138340]Well the really easiest way to tell if it's your hardware would be to hook up an arduino to the RX and TX line and see if anything is coming through.[/QUOTE]
Chryseus and ddrl, why rate dumb?
[QUOTE=DrLuke;33138340]Well the really easiest way to tell if it's your hardware would be to hook up an arduino to the RX and TX line and see if anything is coming through.[/QUOTE]
Chryseus, ddrl, why is this dumb? It's the easiest way to determine whether it's a hardware or software problem, as the software of arduino is known to work and arduino's serial library can be set up to send some garbage with 2 lines of code.
You should stop being so childish
You guys ever thought of making temperature-controlled, say, gloves?
Oh hey, 2^10 posts.
[QUOTE=DrLuke;33144054]Chryseus, ddrl, why is this dumb? It's the easiest way to determine whether it's a hardware or software problem, as the software of arduino is known to work and arduino's serial library can be set up to send some garbage with 2 lines of code.
You should stop being so childish[/QUOTE]
Pretty sure ddrl is like 13 or 14 sooo
[QUOTE=SubbyV-2;33146946]Pretty sure ddrl is like 13 or 14 sooo[/QUOTE]
What does my age have to do with any of this (and I'm 15).
[QUOTE=ddrl46;33147629]What does my age have to do with any of this (and I'm 15).[/QUOTE]
Maturity and age are related, rating a post dumb without any obvious reason and not even contributing yourself gives everyone an idea of your maturity.
Oh and i was pointing the age comment mainly towards "You should stop being so childish".
[QUOTE=SubbyV-2;33146946]Pretty sure ddrl is like 13 or 14 sooo[/QUOTE]
If your getting really wound up about some ratings I would recommend you turn them off. I mean you are really making a fool of your self here.
[QUOTE=SubbyV-2;33148429]Maturity and age are related, rating a post dumb without any obvious reason and not even contributing yourself gives everyone an idea of your maturity.
Oh and i was pointing the age comment mainly towards "You should stop being so childish".[/QUOTE]
So maturity and age are related? You are 17 and almost 18 if I remember correctly and you are raging about me and Chryseus giving some else a rating, that really shows how mature you are.
[QUOTE=ddrl46;33148647]So maturity and age are related? You are 17 and almost 18 if I remember correctly and you are raging about me and Chryseus giving some else a rating, that really shows how mature you are.[/QUOTE] 17 and pretty much still a year away from 18, why rate dumb and not show anything to say yeah this is why?
[editline]6th November 2011[/editline]
[QUOTE=benjojo;33148625]If your getting really wound up about some ratings I would recommend you turn them off. I mean you are really making a fool of your self here.[/QUOTE] Not really wound up, just dont see why they wouldn't post a reason behind it
Stop arguing about ratings, the reason I rated Drluke dumb in the first place is because it is clear to me it could not be a software problem, also using the Arduino to test something like serial communication may work if you was doing simple chip to chip UART but is no good when it comes to RS-232, a level translation chip like the MAX232 must be used otherwise results will be unpredictable since RS-232 requires a negative voltage which the MAX232 internal +10V and -10V charge pump circuit provides.
[QUOTE=Chryseus;33148708]Stop arguing about ratings, the reason I rated Drluke dumb in the first place is because it is clear to me it could not be a software problem, also using the Arduino to test something like serial communication may work if you was doing simple chip to chip UART but is no good when it comes to RS-232, a level translation chip like the MAX232 must be used otherwise results will be unpredictable since RS-232 requires a negative voltage which the MAX232 internal +10V and -10V charge pump circuit provides.[/QUOTE]
He said he wires it up through a serial port, so that's assuming it's either an FTDI or MAX232 or similar. That means he somehow has hardware to interface his computer's serial port with the microcontrollers serial port. Now he says when he's pressing down on the wires, something happens.
If he is using a level translation or USB interface chip then that narrows it down to:
A) Poor connection
B) Incorrect circuit
C) Bad chip
I suspect A being the probable cause since there is a change when the RX and TX wire / joint is stressed.
[QUOTE=DrLuke;33150771]He said he wires it up through a serial port, so that's assuming it's either an FTDI or MAX232 or similar. That means he somehow has hardware to interface his computer's serial port with the microcontrollers serial port. Now he says when he's pressing down on the wires, something happens.[/QUOTE]
Yes, this is exactly what I am doing. I soldered a MAX232 chip with caps on a seperate proto-board, and made a "plug" to plug into a "socket" on my other boards. When I tested this with my ATTiny2313, everything worked perfectly, even going as far as to write a shell with command parsing (I posted some progress on it earlier in this thread.) It probably is the poor connection as you guys have stated, but I'm not sure how to fix it, from the looks of it I'm doing the exact same thing as before (4 pins sticking straight up with connections soldered to them underneath, and then plugging them in.)
Edit: I'm really hoping it isn't a bad chip, it probably isn't but one of the 2 ATMega328s I ordered was faulty and doesn't work, and the other (this one) does. It would be a bummer if both if my entire order came out as faulty, but that probably isn't the case, I'll go back and look over the connections. :v:
[media]http://www.youtube.com/watch?v=6lvm3FGTHSI[/media]
Totally do want
[QUOTE=DrLuke;33175447][media]http://www.youtube.com/watch?v=6lvm3FGTHSI[/media]
Totally do want[/QUOTE]
Dear santa...
So I've been lurking around, and I want to get into electronics. I've taken some intro courses, but I feel I don't have a great grasp on some of the simpler concepts, and I haven't been able to apply the theory to actual projects. I want to both learn and do, and preferably learn by doing. I really want to delve into it. I have some of the books in the OP.
Should I buy an arduino? I think it looks really cool, but I don't want to get it and then not do anything with it (that's my fear with buying just about anything). Would it let me jump into electronics and simultaneously allow me to learn AND make stuff?
Yo sexy thread! I'm thinkin about getting a 'duino finally.
Anyone mind hooking me up with the stuff I need?
I definitely want a GPS, an LCD screen, and a arduino battery pack. A touch screen would seal the deal, too. What would be a good bundle for this? Hopefully under $70 or so
[QUOTE=Map in a box;33241783]Yo sexy thread! I'm thinkin about getting a 'duino finally.
Anyone mind hooking me up with the stuff I need?
I definitely want a GPS, an LCD screen, and a arduino battery pack. A touch screen would seal the deal, too. What would be a good bundle for this? Hopefully under $70 or so[/QUOTE]The GPS alone would be about $50 so good luck with that.
Sorry, you need to Log In to post a reply to this thread.