Show Posts
|
|
Pages: 1 ... 3 4 [5] 6 7 ... 12
|
|
61
|
Using Arduino / Programming Questions / Re: SetTimeout()
|
on: September 06, 2012, 04:47:53 pm
|
|
Hi, Thanks but I don't quite understand how that works, if my device hangs on the reads for the sensors, is there any way I can have it skip over that part of the code?
Many thanks
|
|
|
|
|
62
|
Using Arduino / Programming Questions / SetTimeout()
|
on: September 06, 2012, 12:03:29 pm
|
Hi, I am unsure of how to use this function, the documentation seems to be almost non existent. I would like to set a timeout when I read one of my sensors that is on an i2c bus incase it gets unplugged so doesn't hang the arduino. float hum1 = (SHT2x.GetHumidity()); float temp1 = (SHT2x.GetTemperature()); If anyone knows how to put that within a setTimeout function I will be very appreciative.
|
|
|
|
|
66
|
Using Arduino / Displays / Re: E-Paper
|
on: September 02, 2012, 06:58:05 am
|
|
Hi, no update sorry, we ended up going with a regular LCD due to cost, I do have a 5" pervasive display hooked up to a pic dev board though but havent had much of a chance to play with it.
|
|
|
|
|
69
|
Using Arduino / Programming Questions / Re: Adding a function
|
on: August 31, 2012, 09:44:48 am
|
|
The ports.h and SHT21.h creates a series of simulated i2c buses that run on one analogue pin and one digital pin. They are not picked up by the i2c scanner. This allows me to use 8 sht21 sensors which I would not normally be able to do on the same bus as they all have the same fixed address.
|
|
|
|
|
72
|
Using Arduino / Programming Questions / Adding a function
|
on: August 31, 2012, 07:21:39 am
|
Hi, I would like to use the DeviceI2C::isPresent function from Ports.h in SHT21Ports.h, or if someone knows how to get it to check to see if the sensors are present (I have already tried the I2C scanners it picks up the soft ports whether or not the device is connected) I need a way of checking to see if the devices are connected. I really need a way to check if the sensors have been unplugged. The libraries are http://pastebin.com/u/mrjonny2
|
|
|
|
|
74
|
Using Arduino / Microcontrollers / Bootloading ATMega2560V
|
on: August 30, 2012, 06:33:24 am
|
Hi, I am stumped I am trying to program a 2560V on a custom PCB and getting errors from avrdude, I am not sure if it is a design error on my PCB or something wrong. So if someone could confirm everything is ok I would be very grateful. https://www.dropbox.com/s/0ld57kyslr4ajhs/Schematic.pdfelvyn-249-88:~ jonny_flowers$ avrdude -p m2560 -c avrispmkii -P usb -B 1 -vvv
avrdude: Version 5.3.1.osxintelhack, compiled on Feb 1 2007 at 22:30:12 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
System wide configuration file is "/usr/local/etc/avrdude.conf" User configuration file is "/Users/jonny_flowers/.avrduderc" User configuration file does not exist or is not a regular file, skipping
Using Port : usb Using Programmer : avrispmkii Setting bit clk period: 1.0 avrdude: usbdev_open(): Found AVRISP mkII, serno: 000200112693 Using p = 1.00 us for SCK (param = 3) AVR Part : ATMEGA2560 Chip Erase delay : 9000 us PAGEL : PD7 BS2 : PA0 RESET disposition : dedicated RETRY pulse : SCK serial program mode : yes parallel program mode : yes Timeout : 200 StabDelay : 100 CmdexeDelay : 25 SyncLoops : 32 ByteDelay : 0 PollIndex : 3 PollValue : 0x53 Memory Detail :
Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- eeprom 65 10 8 0 no 4096 8 0 9000 9000 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- flash 65 6 256 0 yes 262144 256 1024 4500 4500 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- lfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- hfuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- efuse 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- lock 0 0 0 0 no 1 0 0 9000 9000 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00 Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00
Programmer Type : STK500V2 Description : Atmel AVR ISP mkII Programmer Model: AVRISP mkII Hardware Version: 1 Firmware Version: 1.10 Vtarget : 3.4 V SCK period : 1.00 us
avrdude: stk500v2_command(): command failed avrdude: initialization failed, rc=-1 Double check connections and try again, or use -F to override this check.
avrdude done. Thank you.
|
|
|
|
|
75
|
Using Arduino / Programming Questions / Re: I2C Ping/Check connected devices
|
on: August 27, 2012, 05:05:41 am
|
Ok so I ran the code and the scan picks up 9 devices, I2C scanner. Scanning ... Found address: 64 (0x40) Found address: 80 (0x50) Found address: 81 (0x51) Found address: 82 (0x52) Found address: 83 (0x53) Found address: 84 (0x54) Found address: 85 (0x55) Found address: 86 (0x56) Found address: 87 (0x57) Done. Found 9 device(s).
The first one is the hard I2C channel SHT21 and then the second one is an I2C EEPROM chip, then I am guessing the other 7 detected are my soft channels. but only 3 of the channels have devices connected.
|
|
|
|
|