Show Posts
Pages: [1] 2 3
1  Forum 2005-2010 (read only) / Interfacing / Re: Arduino and 1-wire on: April 19, 2008, 02:05:56 am
YES, I did forget to say that !
2  Forum 2005-2010 (read only) / Interfacing / Re: Arduino and 1-wire on: April 18, 2008, 12:05:52 pm
For 18S20:


Code:
void loop()
{
  int LowByte, Whole, Fract, Tc;
  OneWireReset(TEMP_PIN);
  OneWireOutByte(TEMP_PIN, 0xcc);
  OneWireOutByte(TEMP_PIN, 0x44); // perform temperature conversion, strong pullup for one sec
  OneWireReset(TEMP_PIN);
  OneWireOutByte(TEMP_PIN, 0xcc);
  OneWireOutByte(TEMP_PIN, 0xbe);
  LowByte = OneWireInByte(TEMP_PIN);
  Tc=(LowByte*10)/2;               // 18S20 Temp= LSB/2
  Whole=Tc / 10;                  //calcul de l'entier
  Fract=Tc % 10;                  //calcul fraction ".5"
   Serial.print("Temperature :");
  Serial.print(Whole);
  Serial.print(".");
  Serial.println(Fract);
  delay(2000);
 }

I only have 18S20 so I know it works and I did spend a couple of hours reading through the datasheet.
3  Forum 2005-2010 (read only) / Interfacing / Re: Arduino 0011 but other AVR chip ??? on: July 08, 2008, 08:06:58 am
I'm finally using Bascom AVR free version (4k limit) , plenty for 1k chip !!!

But it'll still be interesting to use ARDUINO IDE and librarys for other Atmel chips.....


And I am not so good tinkering with settings and librarys  :smiley
4  Forum 2005-2010 (read only) / Interfacing / Re: Arduino 0011 but other AVR chip ??? on: July 07, 2008, 10:38:54 am
Quote
If you're using the IDE you're already writing C and C++ code--it's just that you've probably only been told some of it

OK but it seems to be more easy, like reading an ADC value on a port compared to WinAVR is completely different !


Quote
So why do you want to use a different chip? More/less space/cost/??

I'm planning to use an ATtiny13 (already in hand) just for reading an analogue value and setting 3 outputs high or low depending on results, nothing else.
And it's standalone , no need for Xtal, just the chip and leds with their resistors.


5  Forum 2005-2010 (read only) / Interfacing / Re: Arduino 0011 but other AVR chip ??? on: July 07, 2008, 02:44:37 am
Quote
Can I burn blank ATmega168 using an ICSP programmer with a program wrote with the arduino IDE (hex compiled file) without having to burn the bootloader on those chips ?

Sounds interesting as well and need to be experimented.....


But I am getting very confident with the ARDUINO IDE and going to an other system (C, C+ etc..) is making the wheel all over again  :o


I am trying out Bascom AVR but it's not so friendly so that the reason of the first question.



I think the bootloader is only there to provide an easy way to upload the software via serial and have it running when finished.

6  Forum 2005-2010 (read only) / Interfacing / Arduino 0011 but other AVR chip ??? on: July 06, 2008, 06:46:41 pm
Hi all,

This might sound stupid, but can I use the ARDUINO IDE to create a HEX file and "tell" AVR GCC so it can compile for an other AVR product (ATtiny2313 for example) ?


No need for boot loader as I will be using ISP ..........


Stupid question isn't it ???? :smiley

7  Forum 2005-2010 (read only) / Interfacing / Re: Arduino as I2C Slave ? on: April 21, 2008, 12:33:21 pm
As the master/slave is made by coding it should not be to difficult to implement.

I'm gonna order a min a give it a try .

Tnx for your precious help !
8  Forum 2005-2010 (read only) / Interfacing / Re: Arduino as I2C Slave ? on: April 21, 2008, 09:41:05 am
Yes, I did read it and it's good !
(willing to send a bord ?  smiley-grin )

So I guess I'll make the "ethernet arduino" a slave and the other one a master to gain access to other I2C bus and take control of RTC and GPIO expanders.......

9  Forum 2005-2010 (read only) / Interfacing / Re: Arduino as I2C Slave ? on: April 21, 2008, 09:30:42 am
Ah funny my name is Jason too  ;D


Ok I got it.

The plan is to have an arduino running with an ethernet shield (have it already and plyed with) but it's taking lots of memory...
So I'll hook-up a 2nd arduino as a I/O master.

But, an arduino slave can control an I2C RTC or anyotherthing over the same bus ?

I would like to keep the serial for the ethernet one, easing the troubleshooting and debugging....
10  Forum 2005-2010 (read only) / Interfacing / Re: Arduino as I2C Slave ? on: April 21, 2008, 07:04:02 am
mmmm, tnx for the link.

Does it allow sending/receiving in the same sketch as well and how to I set up the address ?

Ah ok, adress is the Wire.begin(2) thingy in brackets is it ?
So that means I can use any adress as long there is no conflict.


11  Forum 2005-2010 (read only) / Interfacing / Arduino as I2C Slave ? on: April 21, 2008, 01:58:18 am
Has anyone ever made an Arduino as a Slave I2C ?

I'm planning to use 2 minis as slaves connected to a master Arduino(main cpu + lcd & ethernet).

Is there anything specific I should be aware of ? like I2C address settings or what ever ?

Tnx....
12  Forum 2005-2010 (read only) / Development / Re: Developing for ATtinyxx on Arduino? on: April 23, 2008, 03:11:04 am
I'm doing like you, digging around and trying to find out how it works....

Never used AVRdude on it's own, but the Arduino GUI does use it no ?
13  Forum 2005-2010 (read only) / Development / Re: Developing for ATtinyxx on Arduino? on: April 23, 2008, 12:07:57 am
There's a Tiny programmer made from an Arduino somewhere on the web....

http://www.electronicsweekly.com/blogs/gadget-freak/2007/11/arduino-avr-in-system-programmer-isp.html
http://spiffie.org/electronics/archives/microcontrollers/A%20High-Volume%20Atmega%20Arduino%20Programmer%20and%20Tester.html

I was also thinking of using it......but with the trial version of bascom AVR, fits the attiny2313 memory !




14  Forum 2005-2010 (read only) / Development / Re: Servo Libraries - Arduino 0010 on: April 19, 2008, 06:29:49 am
Just Add

Code:
#include <Servo.h>

below the
Code:
#include <ServoTimer1.h>


Of course you need to install the servo library as well before doing this !

At that's what I have in the example and without it it does not compile !
15  Forum 2005-2010 (read only) / Development / Re: Servo Libraries - Arduino 0010 on: April 18, 2008, 05:09:39 am
Did youy get the "pached" library ?

http://www.ladyada.net/make/mshield/download.html

Or this one if Atmega168:
http://www.arduino.cc/playground/uploads/ComponentLib/servotimetimer1_168.zip

Pages: [1] 2 3