Show Posts
|
|
Pages: 1 [2] 3 4 ... 12
|
|
16
|
Using Arduino / General Electronics / Re: Ethernet board Redesign
|
on: November 26, 2012, 08:20:08 pm
|
|
Hi Mark,
In the case of the 1V8 source, there isn´t decoupling because there was none on the original arduino ethernet shield, i thought that it wouldn´t be needed. Don´t forget that i copied the schematics completely for the ethernet redesign. Maybe i can improve the trace distance between pins and read the datasheet of W5100 to improve decoupling.
The 3V3 source has some decoupling capacitors i can try to improve their placement.
The two regulators in the schematic are the same sugested and used in the original arduino ethernet shield (i copied).
The RJ45 connector is just a connector that brings the SPI pins to this ethernet board from another board, and the GND reference comes from the power source. As i´m writting this i just realize that this just might be the problem, the SPI bus. I know that SPI is a PCB bus, but separating the boards was the only way to make my design work.... I will have to try to use the shortest possible cabling between boards, and maybe slowdown comunication droping the SCK frequency.
Do you think droping SCK frequency in the Ethernet libraries will affect their correct functioning? I will try to add some ground pins in the connector this might help a little bit...
Any more ideas?
Thanks!
|
|
|
|
|
19
|
Development / Other Software Development / Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
|
on: November 23, 2012, 10:28:55 am
|
The wire library also contains a include library. Due to "not top quality code of the wire library" a project using the wire lbrary also needs to include the utility folder. The same problem exists for ethernet and SD libraries. From version 1.3 onwards libraries containing an utility subfolder also have the utility subfolder added to the include path. I have been doing some tries, to add the utility to the include path. But i haven´t got any luck. Can you explain me the correct process for adding the utility subfolder to the include path in eclipse?
|
|
|
|
|
20
|
Development / Other Software Development / Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
|
on: November 23, 2012, 08:25:47 am
|
Hi Jantle, I made new instalation of Eclipse, everything new and latest versions. At the moment i have already created examples with SPI that are working, using the core SPI library. I created one Ethernet test (equal to the Webclient exampli from arduino, no alterations), that uses SPI Ethernet libraries. When i build the project i get this error: **** Build of configuration Release for project ETHERNET_test ****
make all Building file: C:/Program Files/arduino 1.0.2/libraries/Ethernet/Dhcp.cpp Invoking: AVR C++ Compiler avr-g++ -I"C:\Program Files\arduino 1.0.2\hardware\arduino\cores\arduino" -I"C:\Program Files\arduino 1.0.2\hardware\arduino\variants\mega" -I"E:\LMIT HW Energia\Wisebox\Eclipse-Arduino\ETHERNET_test" -I"C:\Program Files\arduino 1.0.2\libraries\Ethernet" -I"C:\Program Files\arduino 1.0.2\libraries\SPI" -D__IN_ECLIPSE__=1 -DUSB_VID= -DUSB_PID= -DARDUINO=102 -Wall -Os -ffunction-sections -fdata-sections -fno-exceptions -g -mmcu=atmega2560 -DF_CPU=16000000UL -MMD -MP -MF"Ethernet/Dhcp.d" -MT"Ethernet/Dhcp.d" -c -o "Ethernet/Dhcp.o" -x c++ "C:/Program Files/arduino 1.0.2/libraries/Ethernet/Dhcp.cpp" C:/Program Files/arduino 1.0.2/libraries/Ethernet/Dhcp.cpp:4:19: error: w5100.h: No such file or directory make: *** [Ethernet/Dhcp.o] Error 1
**** Build Finished **** Do you have any idea what might be the problem?
|
|
|
|
|
21
|
Development / Other Software Development / Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
|
on: November 22, 2012, 10:10:31 am
|
Hi, I´m having a problem with the plugin. I followed the all tutorial and i have got a EEPROM example working (imported the EEPROM libraries etc...) But When i trie to import the SPI libraries i get this error on building: **** Build of configuration Release for project MCUUU ****
make all Building file: C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp Invoking: AVR C++ Compiler avr-g++ -I../leonardo_test -I../MCUUU/Ethernet -D__IN_ECLIPSE__=1 -DARDUINO=102 -DUSB_PID= -DUSB_VID= -Wall -Os -ffunction-sections -fdata-sections -fno-exceptions -g -mmcu=atmega2560 -DF_CPU=16000000UL -MMD -MP -MF"SPI/SPI.d" -MT"SPI/SPI.d" -c -o "SPI/SPI.o" -x c++ "C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp" C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp:11:26: error: pins_arduino.h: No such file or directory In file included from C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp:12: C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.h:15:21: warning: Arduino.h: No such file or directory In file included from C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp:12: C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.h:38: error: 'byte' does not name a type C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.h:55: error: 'byte' does not name a type C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp: In static member function 'static void SPIClass::begin()': C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp:19: error: 'SS' was not declared in this scope C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp:19: error: 'HIGH' was not declared in this scope C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp:19: error: 'digitalWrite' was not declared in this scope C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp:24: error: 'OUTPUT' was not declared in this scope C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp:24: error: 'pinMode' was not declared in this scope C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp:38: error: 'SCK' was not declared in this scope C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp:39: error: 'MOSI' was not declared in this scope C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp: In static member function 'static void SPIClass::setBitOrder(uint8_t)': C:/Program Files/arduino 1.0.2/libraries/SPI/SPI.cpp:49: error: 'LSBFIRST' was not declared in this scope make: *** [SPI/SPI.o] Error 1
**** Build Finished ****
I post an image to so you can see the project construction. https://dl.dropbox.com/u/7216207/eclipse.JPGCan someone help with this problem? Regards
|
|
|
|
|
22
|
Using Arduino / General Electronics / Protocol latch
|
on: October 03, 2012, 10:12:07 am
|
|
Hi,
I´m looking for a cheap chip, that allows me to put in its outputs TTL levels 0 or 1, using UART protocol or other.
Basically the chip will latch a value that i send via protocol, until i send the next value.
Does anyone know something like this?
Cheers
|
|
|
|
|
23
|
Using Arduino / Microcontrollers / Re: MCU Mega2560 programing, crazy problem
|
on: September 07, 2012, 10:30:11 am
|
|
Hi again,
Been reading about SPIEN:
* SPIEN - Enable Serial Program and Data Downloading - 0 (programmed, SPI prog.enabled)
If not at o state i wouldn´t be able to program de Chip, but in the later part of the table it sais:
* The SPIEN Fuse is not accessible in serial programming mode.
So i still don´t know what it might be...
|
|
|
|
|
24
|
Using Arduino / Microcontrollers / Re: MCU Mega2560 programing, crazy problem
|
on: September 07, 2012, 10:17:50 am
|
|
Hi ,
Hi think there might have been some bus sharing in that case, that might have provoked some fuse fiddling...
What would be the impact of messing with the SPIEN fuse?
Basically the unit doesn´t talk to me when i connect it to the AVRISP II, doesn´t even allow signature reading.
|
|
|
|
|
25
|
Development / Other Software Development / Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
|
on: September 06, 2012, 10:02:49 am
|
Jantje i had watched it several times, and once again when you asked it But the problem i was having it was not addressed in the video. I ended up importing the EEPROM library and it worked (File->Import), i thought it wouldn´t be necessary to import core libraries into your project for it to work. Few last words, really like one feature that this plugin has, multiple serial monitors at the same time with color. I have 3 processors onboard that interact...  really eases the debugging Thanks for the effort
|
|
|
|
|
26
|
Development / Other Software Development / Re: Windows/Linux/Mac Eclipse plugin to compile and upload arduino sketches
|
on: September 06, 2012, 09:06:51 am
|
Hi Jantje, I don´t have a lot of experience in eclipse, always developed with other IDEs. I don´t really know how those includes got there...  I think the problem is the way i imported core librarys from Arduino. I started all over again... I created a new project with the ASCIItable example and was able to compile it, upload it and run it normally. After, i created project TESTE2 which uses the core library EEPROM, is the simple writeEEPROM example. In this case i get the "unresolve include for EEPROM.H" how can i import or include in the path the path for EEPROM.H? Best regards
|
|
|
|
|
29
|
Using Arduino / Microcontrollers / MCU Mega2560 programing, crazy problem
|
on: September 06, 2012, 06:31:38 am
|
|
Hi,
I have a PCB where i have 1 MCU328P and 2 MCU2560 units. I have been using an ATmega328p to program the ATmega2560 MCUs successfully.
The other day trying to do some code fast i developed a sketch that programmed the 2 2560MCUs, strangely the skecth did something to the MCUs that impossibilitated any other programing after that...
Plus, when i tried to access the 2560 via AVRisp II i wasn´t able to connect to them or even read the signature. The AVRisp fails at "Entering programing mode" just like my skecth.
Does someone has any clue of what problem this might be and what i can do to solve it?
PS: I am using a version of the "ATmegaHEXuploader" skecth from Nick Gammon
|
|
|
|
|