Show Posts
Pages: 1 ... 38 39 [40] 41 42
586  Using Arduino / Installation & Troubleshooting / Re: Uno not responding on: July 28, 2012, 11:39:03 am
Nice documentation for a GLCD.

Ok, it is a KS0108 compatible.  Do you have a backpack that connects to the Uno with just a 4-5 wires or 13 wires or more?

Do you have a sample of the sketch that you are using for the GLCD?
587  Using Arduino / Installation & Troubleshooting / Re: Uno not responding on: July 27, 2012, 10:24:56 pm
4 bit parallel or Serial?
588  Using Arduino / Installation & Troubleshooting / Re: Second time loading sketch sync error on: July 27, 2012, 03:57:22 pm
Try burning the bootloader again and before uploading Blink, change the delays to 100ms.
589  Using Arduino / General Electronics / Re: 50% duty cycle square wave from 1hz to 1Mhz, easiest way? on: July 27, 2012, 10:58:35 am
I used this sketch to time a Atmega1284p at 1MHz:

Edit - *With* another Uno.

Code:
#include <TimerOne.h>

#define pwmRegister OCR1A
const int  outPin = 9;

long period = 1;     // the period in microseconds
long pulseWidth = 0.5; // width of a pulse in microseconds

int prescale[] = {0,1,8,64,256,1024}; // range of prescale values

void setup()
{
  Serial.begin(9600);
  pinMode(outPin, OUTPUT);
  Timer1.initialize(period);  //initialize timer1, 1000 microsec
  setPulseWidth(pulseWidth);
}

void loop()
{
}

bool setPulseWidth(long microseconds)
{
  bool ret = false;
  
  int prescaleValue = prescale[Timer1.clockSelectBits];
  long precision = (F_CPU / 128000) * prescaleValue  ;
  period = precision * ICR1 / 1000;
  if( microseconds < period)
    {
      int duty = map(microseconds, 0, period, 0, 1024);
      if(duty < 1)
        duty = 1;
      if( microseconds > 0 && duty < RESOLUTION)
      {
        Timer1.pwm(outPin, duty);
        ret = true;
      }
    }
    return ret;
}

Just need the Timer1 library.
590  Using Arduino / Motors, Mechanics, and Power / Re: Why are Magnets not allowed in an airplane? on: July 27, 2012, 01:02:36 am
So in a suitcase it would not cause any damage but its safer not to take them. Thx for your replies.

There is a sweet spot (or un-sweet) in a harmonics that *may* affect other circuitry.  Usually, it is a high energy pulse of some variety (HAM guys might understand the Linear and old automated garage doors in the neighborhood)  Every effort has be put into isolating this PED or personal electronic devices interference (on aircraft) and they have come up with nothing.  Apparently,  Air UAE is having fun not giving in to the consensus of the precautionary principle in banning everything that they do not understand.

So, no, you will not find a reasonable scientific (reproducible) that will support a one telsa object doing anything to aircraft avionics.
591  Using Arduino / Installation & Troubleshooting / Re: FTDI basic & serial upload to atmega328P breaduino out of sync on: July 26, 2012, 11:53:16 pm
Aref cap just goes from Aref pin to Gnd.

True enough, as well as Avcc to Gnd.  Thanks CrossRoads!
592  Community / Gigs and Collaborations / Re: Interested in meteorite lab project? on: July 26, 2012, 11:20:45 pm
Wow, this looks like so much fun in its simplicity yet it could be so clever.

I used to work with furnaces that worked in a basic eight steps with times on each set (also ignore time till setpoint option).  Maybe

Step 1 - Start (Any initial settings before really beginning)
Step 2 - Purge (Any process gases you may want, for this extra moisture could help)
Step 3 - Ramp Down (to setpoint or just time)
Step 4 - Hold (Sustain setpoint and time)
Step 5 - Ramp Up (to setpoint or just time)
Step 6 - Hold (Sustain setpoint and time)
Step 7 - Purge to external ambient
Step 8 - End or Repeat (Check cycle counter = 0)

Options - Safety Interlocks, Abort Purge...
593  Community / Gigs and Collaborations / Re: Web server code? on: July 26, 2012, 10:58:01 pm
Something like this?

http://mon277rr.dyndns.org:81/?cmd=0

The playground is a wonderful place...
594  Using Arduino / Installation & Troubleshooting / Re: Uno not responding on: July 26, 2012, 10:47:24 pm
I followed this just in case the wrong driver is present because I have the same issue and it doesn't allow me to upload a script unless I unplug everything from the Uno board.

I went and selected the Uno Rev.info file but under driver details it's using a usb driver(usbser.sys)? Is this how it is supposed to show under details or is it the wrong driver?

Pic attached:


Your drivers are the same as my Uno.  What exactly are you unpluging to allow the upload?
595  Using Arduino / Installation & Troubleshooting / Re: FTDI basic & serial upload to atmega328P breaduino out of sync on: July 26, 2012, 05:45:54 pm
One would think they would put a cap in, but maybe the cord has too much of an antenna effect?  All I know is the noise goes way down on the high frequency.  Just a couple of 0.1uF "electronic pixie dust" parallel in the AREF and the AVCC just to tidy up.

Have fun with that garden project!  Try to not too much water on your controller!
596  Using Arduino / Installation & Troubleshooting / Re: FTDI basic & serial upload to atmega328P boarduino on: July 26, 2012, 02:57:12 pm
Actually, you had your analog reference hooked up (could use some 0.1uF for decoupling) and it can come in handy when you run on batteries.  My examples did not have AREF connected.  There is not too many parts, just some 100uF caps to clean the noise from wall power jacks and a 7805 regulator.  Full size breadboards are nice to run a uC and sensors in one package.  The original layout came from oomlout.org and I thought it was a decent layout.

Populated boards are handy for the Arduino shields and when trying to not scare a non-electronics type.

I think the only real value of barebones is the knowledge of how the basic components work and it is a repairable platform for when you do something a little more dangerous smiley-grin ... SMD repairs suck.

Well, if it works, it works.  That is quite a large 0.1uF reset cap.
597  Using Arduino / Installation & Troubleshooting / Re: FTDI basic & serial upload to atmega328P boarduino on: July 26, 2012, 02:12:45 pm
I have actually had a bootloader that installed and the FTDI tripped (the internal fuses?) something and it would not respond as well.  I have read that some high/low fuse settings can be an issue on certain bootloaders.  Next time, we will play with AVRdude smiley-wink

Try hooking the auto-reset capacitor to the DTR pin if you haven't already and see if it works.
598  Using Arduino / Installation & Troubleshooting / Re: FTDI basic & serial upload to atmega328P boarduino on: July 26, 2012, 01:56:39 pm
Excellent.

Now, disconnect the ISP and hook the FTDI back up *without* the reset to the capacitor.  Upload the regular Blink sketch. 

We will manually reset on sketch size and two blinks and release the reset button again.
599  Using Arduino / Installation & Troubleshooting / Re: FTDI basic & serial upload to atmega328P boarduino on: July 26, 2012, 01:16:45 pm
TX=>RX
Rx<=TX
 For the FTID to atmega right? I need to rule that out as a possible mistake so I'm not switching them over and over.


Yup, after we confirm the bootloader with the ISPTiny on MOSI, MISO, SCK, Reset and power.  Make sure the Reset is directly to pin 1 and not the Auto Rest Cap.

Fritzing is quite good.  My diagrams of this project are going to be line art though smiley-wink
600  Using Arduino / Installation & Troubleshooting / Re: FTDI basic & serial upload to atmega328P boarduino on: July 26, 2012, 12:43:48 pm
I have heard that the new Optiboot is supposed to work.  I will test it out someday.

Attached are layouts using that "rats nest".  I am working on simple diagram of it so that do not have to torture people anymore.  Configuration is 16MHz Duemilanove bootloaded.

No, the FTDI will only work after the bootloader is installed.  When the standard Arduino bootloader is burnt, a version of the blink sketch is installed as well you let you know the MCU is alive and well blinking D13 (Pin 19).  The blink will need to be steady, ~500ms on and 1000ms off.   Putting Optiboot on a 1284p gave me a "tweeky" flash on the D13 and sounds exactly like the non-communication issue you are having.  I used older version and it worked.  Anyhow see if you can upload the Duemilanove bootloader (with the ISP Tiny)with a led and resistor on pin 19.

BTW, what kind of crystal is that on your board?
Pages: 1 ... 38 39 [40] 41 42