Show Posts
Pages: 1 ... 6 7 [8] 9 10 ... 14
106  Using Arduino / Microcontrollers / Atmega328P and FTDI communication breakdown on: March 25, 2013, 12:12:04 pm
I'm pretty much stuck at a problem with no hope in sight. I'm trying to communicate to an Atmega328P through an FTDI chip. It only works when VCC is brought up from 3.3V to 5.0v by shorting VUSB to VCC. When I remove the short and VCC drops back down to 3.3V I cannot get the Arduino IDE to get code into the 328P. I have tried putting an UNO bootloader in the 328P but only the Diecimila one works. Since the board has an at 8Mhz resonator I might put a Pro/ Pro mini (3.3V, 8Mhz) bootloader in next to see if that works.





107  Using Arduino / Programming Questions / Broken Menu example on: March 17, 2013, 06:12:50 pm
I was wondering why the Menu example is broken for 1.0.3 at http://playground.arduino.cc/Code/Menu? I have installed the library accoring to the instructions and restarted the program. When I verify the code I get the following errors:


In file included from SerialMenu.pde:1:
/Applications/Arduino.app/Contents/Resources/Java/libraries/Menu/Menu.h:33:22: error: WProgram.h: No such file or directory
In file included from /Applications/Arduino.app/Contents/Resources/Java/libraries/Menu/Menu.h:34,
                 from SerialMenu.pde:1:
/Applications/Arduino.app/Contents/Resources/Java/libraries/Menu/interfaces/MenuInterface.h:41: error: 'byte' has not been declared
/Applications/Arduino.app/Contents/Resources/Java/libraries/Menu/interfaces/MenuInterface.h:47: error: 'byte' has not been declared
In file included from /Applications/Arduino.app/Contents/Resources/Java/libraries/Menu/SubMenu.h:35,
                 from /Applications/Arduino.app/Contents/Resources/Java/libraries/Menu/MenuItem.h:35,
                 from /Applications/Arduino.app/Contents/Resources/Java/libraries/Menu/Menu.h:36,
                 from SerialMenu.pde:1:
/Applications/Arduino.app/Contents/Resources/Java/libraries/Menu/interfaces/SubMenuInterface.h:43: error: 'byte' has not been declared
/Applications/Arduino.app/Contents/Resources/Java/libraries/Menu/interfaces/SubMenuInterface.h:48: error: 'byte' has not been declared
In file included from /Applications/Arduino.app/Contents/Resources/Java/libraries/Menu/MenuItem.h:35,
                 from /Applications/Arduino.app/Contents/Resources/Java/libraries/Menu/Menu.h:36,
                 from SerialMenu.pde:1:
/Applications/Arduino.app/Contents/Resources/Java/libraries/Menu/SubMenu.h:46: error: 'byte' has not been declared
/Applications/Arduino.app/Contents/Resources/Java/libraries/Menu/SubMenu.h:51: error: 'byte' has not been declared
/Applications/Arduino.app/Contents/Resources/Java/libraries/Menu/SubMenu.h:53: error: 'byte' does not name a type
/Applications/Arduino.app/Contents/Resources/Java/libraries/Menu/SubMenu.h:54: error: 'byte' does not name a type
/Applications/Arduino.app/Contents/Resources/Java/libraries/Menu/SubMenu.h:55: error: 'byte' does not name a type
In file included from SerialMenu.pde:1:
/Applications/Arduino.app/Contents/Resources/Java/libraries/Menu/Menu.h:51: error: 'byte' has not been declared
/Applications/Arduino.app/Contents/Resources/Java/libraries/Menu/Menu.h:59: error: 'byte' has not been declared
/Applications/Arduino.app/Contents/Resources/Java/libraries/Menu/Menu.h:62: error: 'byte' does not name a type
/Applications/Arduino.app/Contents/Resources/Java/libraries/Menu/Menu.h:63: error: 'byte' does not name a type
/Applications/Arduino.app/Contents/Resources/Java/libraries/Menu/Menu.h:64: error: 'byte' does not name a type
108  Topics / Product Design / Re: 3d Arduino's models on: March 05, 2013, 02:58:51 pm
For component models I always check out http://www.3dcontentcentral.com

Mike
109  Topics / Product Design / Re: 3d Arduino's models on: March 05, 2013, 01:02:08 pm
You may have luck finding 3d models of particular components like the accelerometer but probably not the larger assemblies like the mini.
110  Using Arduino / Programming Questions / Re: accelerometer 180 degree rotated on: March 01, 2013, 10:05:30 am
Multiplying by -1 was the first thing I tried and works fine. Thanks to all who replied.

Mike
111  Using Arduino / Programming Questions / accelerometer 180 degree rotated on: February 28, 2013, 03:11:15 pm
I have a graphics display and accelerometer connected to my arduino that shows a ball the middle of the screen when level. When on a angle the ball moves to the right when it should lean towards the left. An easy fix would be to rotate the accelerometer 180 degrees but I was wondering if it can somehow be done in code. At 0 the ball is in the middle, -10 is to right when it should be on the left and 10 is to the left when it should be on the right. Somehow all the negative numbers have to be positive and the positive have to be negative.

Right now this is what I have.

Code:
  float tempAccel = readAccel();           
  int abc=acc_data[0];
  display.print((float) abc, 0 );
112  Using Arduino / Microcontrollers / Re: Leonardo bootloader USBtinyISP problem on: February 28, 2013, 03:01:46 pm
It turns out the reset line has a 10K pullup resistor but no capacitor to ground. That explains why it occasionally worked.

Mike
113  Using Arduino / Microcontrollers / Leonardo bootloader USBtinyISP problem on: February 28, 2013, 08:36:55 am
I have a few small designs layout out using the Atmega32u4 microprocessor that have the Leonardo bootloader installed using the USBtinyISP and the Arduino 1.0.3 IDE. I just choose the Leonardo and the board, USBtinyISP and clicked burn bootloader. The board usually runs the code fine on power up but occasionally will not. Every now and then I have to put in a new bootloader for it to work properly again. This has happened on two different pieces of hardware. Has anyone else had this problem?
114  Community / Products and Services / Re: PCB online service - best price - fast delivery - NO TOOL cost on: February 25, 2013, 03:17:15 pm
Maybe I missed something but I entered in as a test a 1.5" X 2" standard default settings and two pieces that came out to cost $123.00 US dollars. Thats crazy expensive. The same board at OSH Park costs $12.00

miker
115  Topics / Product Design / Re: Moving from the uno to programming AVRs. Please recommend on: February 20, 2013, 04:03:45 pm
I'm did exactly that and made a little tutorial up along the way to help others. It was actually easier then what I was expecting. That never happens: https://sites.google.com/site/0miker0/Designing-your-custom-Arduino-Board
116  Using Arduino / General Electronics / Re: Switching power sounds noisy on: January 09, 2013, 11:00:40 am
I used ceramic caps and just used whatever temperature type I could find since it will always be in a room temperature environment. Most likely X7R type. Nice. Thats something I never though of. I'll check that out as well.
117  Using Arduino / General Electronics / Re: Switching power sounds noisy on: January 09, 2013, 10:56:51 am
I have a voltage divider set for 5 volts. A fixed one would probably save me two resistors. The part is hand soldered using a microscope so the components GND pad under the part is not soldered to the board. Pins #4 and #9 are both GND and run to the center GND pad on the boards so I just hand solder those two pins.
118  Using Arduino / General Electronics / Re: Switching power sounds noisy on: January 09, 2013, 09:33:20 am
The data sheet shows the recommended parts placement. On my design I ended up putting the capacitors on the opposite side of the board. That's most likely my problem. For the next boards I'll follow the data sheets recommendations.
119  Using Arduino / General Electronics / Switching power sounds noisy on: January 09, 2013, 09:07:44 am
I created a small PCB design using a switching power supply part number TPS61200DRCR with a 4.7uH inductor LQH3NPN4R7N0L. The inductor is rated at over an amp but but design only draws 40mA. For some reason the supply sounds  very noisy. When I blink and LED I can actually hear the supply on every blink. Today I'll view the output on a scope to see if it measures noisy as well. The input and output capacitors are all the correct values according to the data sheet. Has anyone ever seen this before?
120  Using Arduino / Programming Questions / Re: Fomratting numbers on: January 06, 2013, 05:52:10 pm
I did something like this for my real time clock to display a 01,02,02...
It has a lot of other junk in there but all it really does is push the number to the right and jam a zero in front if less than 0.

  char second[2];
  int tmpsecond = bcdToDec(Wire.receive());

  if(tmpsecond < 10)
  {
   second[1] = second[0];
   second[0] = '0';
  }
  uoled.TextGraphic(112,10,SMALL_FONT,0xFFFF,1,1,second,1);
Pages: 1 ... 6 7 [8] 9 10 ... 14