pHduino_v041_datalogger_v03_firmware_20110101

110 views
Skip to first unread message

sotisanis sotisanis

unread,
Mar 11, 2012, 6:52:49 PM3/11/12
to pHduino
how i run the programm ? you have include some libraries.who i put
this libraries?

Carlos Neves

unread,
Mar 11, 2012, 7:42:33 PM3/11/12
to phd...@googlegroups.com

2012/3/11 sotisanis sotisanis <soti...@gmail.com>

how i run the programm ?
I suppose you are talking about the firmware to write inside of the Arduino. There is another one to read the data from USB port and plot theml (pYpHpoT, a python script).
 
you have include some libraries.
The pHduino version without the datalogger there is no need to install an extra library.
In the package for the datalogger shield, there is a README.TXT with the instructions. You will need a RTC library from the follow link.

who i put this libraries?
You need unpack the libraries inside of the sketchbook/libraries directory. If the libraries directory does not exist, create a new folder with the name libraries inside of the sketchbook directory. Which operation system has the sketchbook directory in a different place. Check the Arduino install documentation.

For the datalogger, you need install this library.
DS1307 RTC I2C library
http://code.google.com/p/sjunnesson/wiki/DS1307

Carlos A. Neves

 

--
You received this message because you are subscribed to the Google
Groups "pHduino" group.
To post to this group, send email to phd...@googlegroups.com
To unsubscribe from this group, send email to
phduino+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phduino?hl=en

sotisanis sotisanis

unread,
Mar 11, 2012, 8:33:20 PM3/11/12
to pHduino
for the arduino i have this error



pHduino_v041_datalogger_v03_firmware_20110101.cpp:22:22: error:
WProgram.h: No such file or directory
In file included from
pHduino_v041_datalogger_v03_firmware_20110101.cpp:33:
C:\arduino-1.0\libraries\DS1307/DS1307.h:10:24: error: WConstants.h:
No such file or directory
In file included from
pHduino_v041_datalogger_v03_firmware_20110101.cpp:24:
/pHduino.h: In function 'unsigned int readADC(unsigned char, long
unsigned int)':
pHduino.h:103: error: 'micros' was not declared in this scope
pHduino.h:106: error: 'analogRead' was not declared in this scope
In file included from
pHduino_v041_datalogger_v03_firmware_20110101.cpp:26:
/commandline.h: In function 'char process_command_line()':
commandline.h:23: error: 'Serial' was not declared in this scope
commandline.h:27: error: 'delay' was not declared in this scope
commandline.h:41: error: 'boolean' was not declared in this scope
commandline.h:41: error: expected `;' before 'first_word'
commandline.h:47: error: 'first_word' was not declared in this scope
commandline.h:54: error: 'first_word' was not declared in this scope
commandline.h:73: error: 'first_word' was not declared in this scope
In file included from
pHduino_v041_datalogger_v03_firmware_20110101.cpp:32:
/twi_eeprom.h: In function 'void wire_eeprom_block_read(int, unsigned
int, int, const void*)':
twi_eeprom.h:19: error: 'class TwoWire' has no member named 'send'

As of Arduino 1.0, the Wire.send() function was renamed to
Wire.write() for consistency with other libraries.

twi_eeprom.h:20: error: 'class TwoWire' has no member named 'send'

As of Arduino 1.0, the Wire.send() function was renamed to
Wire.write() for consistency with other libraries.

twi_eeprom.h:22: error: 'delay' was not declared in this scope
twi_eeprom.h:23: error: 'byte' was not declared in this scope
twi_eeprom.h:24: error: 'class TwoWire' has no member named 'receive'

As of Arduino 1.0, the Wire.receive() function was renamed to
Wire.read() for consistency with other libraries.

/twi_eeprom.h: In function 'void wire_eeprom_block_write(int, unsigned
int, int, void*)':
twi_eeprom.h:35: error: 'class TwoWire' has no member named 'send'

As of Arduino 1.0, the Wire.send() function was renamed to
Wire.write() for consistency with other libraries.

twi_eeprom.h:36: error: 'class TwoWire' has no member named 'send'

As of Arduino 1.0, the Wire.send() function was renamed to
Wire.write() for consistency with other libraries.

twi_eeprom.h:37: error: 'class TwoWire' has no member named 'send'

As of Arduino 1.0, the Wire.send() function was renamed to
Wire.write() for consistency with other libraries.

twi_eeprom.h:39: error: 'delay' was not declared in this scope
In file included from
pHduino_v041_datalogger_v03_firmware_20110101.cpp:33:
C:\arduino-1.0\libraries\DS1307/DS1307.h: At global scope:
C:\arduino-1.0\libraries\DS1307/DS1307.h:47: error: 'boolean' has not
been declared
C:\arduino-1.0\libraries\DS1307/DS1307.h:48: error: 'boolean' has not
been declared
C:\arduino-1.0\libraries\DS1307/DS1307.h:55: error: 'byte' does not
name a type
In file included from
pHduino_v041_datalogger_v03_firmware_20110101.cpp:35:
/acme.h: In function 'void printProgStr(const prog_char*)':
acme.h:16: error: 'Serial' was not declared in this scope
acme.h:16: error: 'BYTE' was not declared in this scope

As of Arduino 1.0, the 'BYTE' keyword is no longer supported.
Please use Serial.write() instead.


i put the ds1307 in the libraries and i delete the folder applet

sotisanis sotisanis

unread,
Mar 12, 2012, 1:47:26 PM3/12/12
to pHduino

i have problem with yhe ds1307 library

Carlos Neves

unread,
Mar 12, 2012, 2:50:17 PM3/12/12
to phd...@googlegroups.com
I updated the packages at the pHduino project for the Arduino 1.0. You can download them from the site project. Follow what I did.

===

For the pHduino without datalog shield.

* Just add the #include <Arduino.h> at the beginning of the main code.

===

For the pHduino with datalog shield

* Removed all WProgram.h and WConstants.h and replaced by Arduino.h.
 
* DS1307.cpp: Included Arduino.h.
 
* DS1307.cpp: Typecast: from Wire.write(0x00) to Wire.write((uint8_t)0x00)
 
* DS1307.h and twi_eeprom.h: Changed all Wire.send to Wire.write and all Wire.receive to Wire.read.
 
* acme.h: Change from Serial.print(c,BYTE) to Serial.write(c).
 
* Changed the main program .pde to .ino.

===

I included the DS1307 library in the package with the changes. Just unpack it in the sketchbook/libraries directory.

Carlos A. Neves


2012/3/11 sotisanis sotisanis <soti...@gmail.com>

Carlos Neves

unread,
Mar 12, 2012, 2:59:35 PM3/12/12
to phd...@googlegroups.com
Sotisanis,

There is one more change that I forgot. I already updated it on the site project.

http://groups.google.com/group/phduino/browse_thread/thread/e240fead779590fa

Carlos A. Neves


2012/3/12 Carlos Neves <can...@gmail.com>

sotisanis sotisanis

unread,
Mar 12, 2012, 3:03:14 PM3/12/12
to pHduino

thank you very much!!!!!!!!! it's ok!!!!!
thank you very very much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Reply all
Reply to author
Forward
0 new messages