Show Posts
Pages: [1] 2 3 ... 13
1  Using Arduino / Programming Questions / Re: Soft SHT21 Libraries on Arduino Mega on: September 13, 2014, 08:33:11 am
The change to 53 was to change how the port numbers are calculated based on the offsets. 
Have a look at the lines

Code:
uint8_t portNum;

    inline uint8_t digiPin() const
        { return portNum ? portNum + 3 : 18; }
    inline uint8_t digiPin2() const
        { return portNum ? portNum + 53 : 19; }
    inline uint8_t anaPin() const
        { return portNum + 53; }

portNum is the value that you pass into the function so you can change the maths above to change your offsets
2  Using Arduino / General Electronics / Re: Potentiometer as voltage divider on: May 08, 2014, 11:02:01 am
I would use a linear regulator to drop that voltage down to 5V to prevent any damage to the arduino and then have the potentiometer to give your 0-5V range
3  Using Arduino / Project Guidance / Re: Arduino Mega 2560 mega on Flexible PCB on: March 22, 2014, 08:09:04 pm
If you have ICSP you don't need serial.  Basically no arduino boot loader.  However I would breakout the JTAG pins so that you can do some debugging if need be.
4  Using Arduino / General Electronics / Re: Powering Arduino with a buck converter on: February 21, 2014, 01:28:01 pm
I am asking as everything I am doing is custom.

This is the DC/DC converter I will be using.  I want as clean a signal as possible.  I checked the simulations in LTSpice and my ripple is about 27mV for my 3.3V supply and 3.6mV for my 5V supply. 
Would you say that is clean enough for adequate performance?
5  Using Arduino / General Electronics / Powering Arduino with a buck converter on: January 23, 2014, 08:43:45 pm
Hi,
Has anyone got some experience on powering an arduino using a buck converter?
I plan on using the ADCs on the chip.

Would I need any filtering circuits? if so can someone recommend somewhere that has some reference designs or if anyone has some they have used before.
Thanks
6  Development / Other Software Development / Arduino USB to Serial Firmware on: January 18, 2014, 07:32:03 pm
Hi,
I cannot seem to find the firmware file for the Arduino USB to Serial Light board firmware.  Would be really helpful to get a copy of it.  I found the firmware for the different versions that come on the new Unos and Megas.  Would make my life so much easier to just get the standalone version firmware.
Any help would be great.
7  Using Arduino / Programming Questions / Re: save data from HTTP Client sketch to buffer on: September 13, 2013, 11:07:20 am
Could you provide some example code for the malloc()?
I thought that progmem had a limited amount of read/writes?
The data is then passed into specific buffers that are used for settings and configurations for my device.
8  Using Arduino / Programming Questions / save data from HTTP Client sketch to buffer on: September 13, 2013, 06:25:09 am
Hi I am using the HTTP Client sketch as seen below to load some data from a web page.  However this data can come in different sizes so I don't want to just define a massive array at the beginning and fill it as needed.  I would prefer to define an array of the required size.  I cant use eeprom or progmem because this read occurs once every 10 seconds.  The data ranges between the longest
Code:
8@xx50.00,xxx0.00:xx99.00,xxx0.00
xx50.00,xx50.00:xx50.00,xx50.00
xx50.00,xx50.00:xx50.00,xx50.00
xx50.00,xx50.00:xx50.00,xx50.00
xx50.00,xx50.00:xx50.00,xx50.00
xx50.00,xx50.00:xx50.00,xx50.00
xx50.00,xx50.00:xx50.00,xx50.00
xx50.00,xx50.00:xx50.00,xx50.00
and the shortest
Code:
1@xx50.00,xxx0.00:xx99.00,xxx0.00


Code:
void parseDeviceInfo(){
  delay(100);
  Serial.println("Device Info");
  while (deviceinfoclient.available()) {
    char c = deviceinfoclient.read();
    Serial.print(c);
  }
 
  // if the server's disconnected, stop the client:
  if (!deviceinfoclient.connected()) {
    Serial.println("disconnecting.");
    deviceinfoclient.stop();
    deviceinfoclient.flush();
 
    delay(3000);
 
    deviceinfoconnect();
  }
}
9  Development / Other Hardware Development / Re: Small-run PCB assembly on: September 13, 2013, 06:17:10 am
The companies that we used were quite good.  But you have to make sure you specify EVERYTHING exactly as you want it.  Also unless you are dealing with large quantities you will need to supply your own parts.  You should however do this for any specialty high value parts.  (We post the sensors we use out as they are hellish expensive) If you do this you know they are yours.
10  Using Arduino / Networking, Protocols, and Devices / Re: Arduino Pro Micro - network /ethernet interface need on: August 23, 2013, 04:55:29 pm
Wiznet 820io
11  Using Arduino / Programming Questions / Re: Flashing a sketch from SD card using 2boot bootloader on: May 26, 2013, 11:41:48 am
I think the project has somewhat stalled.  I have tried to message the original contributors with no results.  smiley-sad
12  Development / Other Software Development / Re: Arduino Ethernet bootloader update on: April 23, 2013, 06:46:41 pm
A quick google search would have pulled up what you need or even looking at the arduino site tutorials.

http://arduino.cc/en/Tutorial/ArduinoISP
13  Development / Other Software Development / Re: Arduino Ethernet bootloader update on: April 17, 2013, 04:34:49 pm
You use the ICSP pins.

14  Using Arduino / Programming Questions / Re: Compile Errors on: April 17, 2013, 04:26:07 pm
Ahhhh
That would make sense, thank you.  I decided to drop support for serial which has made life a little easier.
15  Using Arduino / Programming Questions / Compile Errors on: April 16, 2013, 04:59:11 pm
Hi, I am trying to port 2boots to the Arduino Mega (running a 3.3v and 8Mhz)

The following code seems to produce this error message can someone shed some light please?

Code
https://github.com/mrjonny2/embedded

Error
Code:
avr-gcc -g -Wall -Os -funsigned-char -fno-split-wide-types -fno-inline-small-functions -mcall-prologues -ffunction-sections -fdata-sections -ffreestanding -fno-jump-tables -fno-tree-scev-cprop -fno-split-wide-types -mmcu=atmega2560 -DF_CPU=8000000L  -DMMC_CS=PB0 -DMMC_PORT=PORTB -DMMC_DDR=DDRB  -Wl,--section-start=.text=0x1F000 -Wl,--relax -nostartfiles -Wl,-gc-sections board-ArduinoMegaPro.c mmc_fat.c stk500v1.c prog_flash.c -o build/2boots-ArduinoMegaPro-atmega2560-8000000L-PB0.elf
board-ArduinoMegaPro.c: In function 'main':
board-ArduinoMegaPro.c:62:45: warning: function with qualified void return type called [enabled by default]
stk500v1.c: In function 'setup_uart':
stk500v1.c:129:2: error: 'UBRRL' undeclared (first use in this function)
stk500v1.c:129:2: note: each undeclared identifier is reported only once for each function it appears in
stk500v1.c:130:2: error: 'UBRRH' undeclared (first use in this function)
stk500v1.c:131:2: error: 'UCSRA' undeclared (first use in this function)
stk500v1.c:132:2: error: 'UCSRC' undeclared (first use in this function)
stk500v1.c:133:2: error: 'UCSRB' undeclared (first use in this function)
stk500v1.c:133:10: error: 'TXEN' undeclared (first use in this function)
stk500v1.c:133:20: error: 'RXEN' undeclared (first use in this function)
stk500v1.c: In function 'putch':
stk500v1.c:155:11: error: 'UCSRA' undeclared (first use in this function)
stk500v1.c:155:19: error: 'UDRE' undeclared (first use in this function)
stk500v1.c:156:2: error: 'UDR' undeclared (first use in this function)
stk500v1.c: In function 'getch':
stk500v1.c:192:10: error: 'UCSRA' undeclared (first use in this function)
stk500v1.c:192:18: error: 'RXC' undeclared (first use in this function)
stk500v1.c:201:9: error: 'UDR' undeclared (first use in this function)
stk500v1.c: In function 'handle_addr':
stk500v1.c:236:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
stk500v1.c: In function 'getch':
stk500v1.c:203:1: warning: control reaches end of non-void function [-Wreturn-type]
make: *** [2boots-atmega2560-8000000L-PB0-board-ArduinoMegaPro.hex] Error 1
Pages: [1] 2 3 ... 13