|
1576
|
Using Arduino / Programming Questions / Re: wdt on mega2560
|
on: November 06, 2011, 02:29:18 am
|
This is the exact webiste I got the code from http://tushev.org/articles/electronics/48-arduino-and-watchdog-timerI set the timeout to be 2 seconds and added various timer, like before during and after my sd writes, just to be safe however when I uploaded it defaulted somehow, a bug that I saw after it happened and I researched more, the only indicator being the led constantly lit as the bootloader constantly runs and resets And the default wdt time I believe is like 200ms, which is not long enough for ,the bootloader so my mega was basically bricked, until I was able to catch it at just the right time to upload a new program without it, which required alot of time and luck, and I really don't wanna have to get lucky twice
|
|
|
|
|
1577
|
Using Arduino / Programming Questions / wdt on mega2560
|
on: November 05, 2011, 10:31:11 am
|
|
Hey I was wondering what the correct way to use the watchdog timer on a mega2560? I tried the normal way for say an uno and after finding out that it works, I also found out that the mega2560 has a bug where the wdt time defaults and it eternally resets I want to use it but, I guess the normal way is not an option for the mega?
|
|
|
|
|
1580
|
Using Arduino / Audio / Re: msgeq7 help
|
on: November 04, 2011, 10:51:29 pm
|
|
Solved it, found out my breadboard was missing a row, worked when I put it on another spot lol simple problem simpel fix and now my projects coming along nice
|
|
|
|
|
1581
|
Using Arduino / Audio / Re: msgeq7 help
|
on: November 04, 2011, 01:26:44 pm
|
|
Not at the moment, looking into getting one tho Does the code on that site seem fine? Its really the only example ive found, even though its not too complex i figured basically the same code from the datasheet
|
|
|
|
|
1582
|
Using Arduino / Audio / msgeq7 help
|
on: November 03, 2011, 10:33:06 pm
|
Hey I have a msgeq7 set up exactly as it is in the datasheet, and I tried code from this website after mine (interpreted from datasheet) failed, http://nuewire.com/info-archive/msgeq7-by-j-skoba/ yet I still don't have any sucess : / All I read is 804-807 on all the channels Its not the analog read, I get 0 for ground and 1023 to 5v I believe the microphone chip is fine, its a module I bought, regardless the output doesn not change connected or not the only change I get is when I connect the audio in pin directly to ground where I get about 668 value on the analog read I tried another chip with the same results all new capacitors, tested my resistors with a multi, both close to spec'd can anyone help me figure this out? I hate when things don't work when its so simple : /
|
|
|
|
|
1583
|
Using Arduino / Displays / Re: lcd contrast help
|
on: November 02, 2011, 10:42:21 pm
|
|
Just thinking about the ability to change contrast on the fly, not much practical use but for the sake of knowing thanks, I tried it and it works, no puffs of smoke either, just wanted to see if it was a bad idea
|
|
|
|
|
1584
|
Using Arduino / Displays / Re: searching example for 2.8" TFT Touch Shield
|
on: November 02, 2011, 01:44:29 pm
|
|
I made a control thing for my car with one with pages and buttons, real nice, except I don't know where I saved the code : / adafruits touch screen has a nice library where I got all my code from, simple commands like tft.drawrect(10,10,10 it even had touchscreen library and you basically just map the touch screen to display size and works perfect
|
|
|
|
|
1585
|
Using Arduino / Displays / lcd contrast help
|
on: November 02, 2011, 01:32:13 pm
|
|
Is it possible to control the contrast of an lcd by pwm? I guess it needs a constant voltage which is which a pot is used, but can I put a capacitor of a decent size on the pwm out to create a constant voltage? Any reason why this may be bad?
|
|
|
|
|
1586
|
Using Arduino / Project Guidance / Re: I am trying to find plans for a simple millivoltmeter
|
on: November 01, 2011, 01:33:33 pm
|
|
Diodes would ensure that you are reading dc, depending if you need to know positive or negative, perhaps two separate analog reads off two half bridge rectifier if it doesn't matter one read off a full bridge rectifier will work also depending on the voltage scale a resistor voltage divider would be needed, but will decrease accuracy a bit,
|
|
|
|
|
1589
|
Using Arduino / Project Guidance / Re: MEGA 2560 Help wanted with coding
|
on: October 28, 2011, 09:25:49 am
|
|
How to send a byte from the computer is all up to the computer program you use, get a usb to serial or the port on the arduino and just send your byte, then interpret it on the arduino, ignoring any non important characters like line feed or whitespaces, then use some bitwise math to separate the byte into your outputs the way I have done an identifer is sending a 3 byte package with the pin and state included, like 131 or 130 to turn 13 on(1) or off(0) take the first two character on the arduino side and convert from their ascii values to decimal, combing the two character into one real number to do that you
Pinnumber = Incomingbyte1 - 48 Pinnumber = Pinnumber * 10 Incomingbyte2 = Incomingbyte2 - 48; Pinnumber = Pinnumber + Incomingbyte2;
Remember to. Use a pin lik 3, send 03
Then. To turn on or off Pinstatus = incomingbyte3 - 48; PinMode(Pinnumber, output); digitalWrite(pinnumber,Pinstatus);
This assumes you received the 3 bytes and stored them already
I used this technique and made a library for full control of my mega over serial, digtital and analog input, digital and pwm output,
|
|
|
|
|