Show Posts
Pages: [1] 2 3 ... 15
1  Development / Other Software Development / Re: 1-Wire Slave on: April 11, 2014, 11:11:17 am
UPDATE:
Current GitHub files compile correctly for Teensy 3.1. Must have been picking up old version of onewireslave.h.  I put the current onewireslave.h file in sketch folder and referenced it there and successfully compiled.  Thanks for making changes for 3.1.
Richard
No Thanks needed at all, have fun with it.

Looks like the Slave works more proper with the Teensy 3 and above may its an idea to port the timer and interrupt driven version to the Arduino to get better work with the Megas.
2  Development / Other Software Development / Re: 1-Wire Slave on: March 31, 2014, 06:31:45 am
Strange, I used the files directly from git and tested it, compiled without errors can, test if it compile for other boards from the list? What verion of teensyduino did you use?
3  Development / Other Software Development / Re: 1-Wire Slave on: March 30, 2014, 06:00:15 pm
A okey I see, the version on github did not contain support for the Teensy 3.1, please reload the new from github it should work now.
4  Development / Other Software Development / Re: 1-Wire Slave on: March 30, 2014, 01:27:26 pm
Hello
I have been looking for information for onewire slave. This thread looks interesting but I am not sure I understand how to implement this.  If the code is .ino file does that mean I can compile and load from Arduino GUI ??  I also looked at the code on GitHub (from Markus https://github.com/MarkusLange/OneWireSlave ) that has .ino files for what appears to be Teensy devices.  I have not been able to get that compile with Arduino.  I currently have Arduino Mega 2560 and a Teensy 3.1.  I would really appreciate someone explaining how to use the various versions listed here and at GitHub https://github.com/MarkusLange/OneWireSlave.

Thanks

Hi ringram,

can you explain or show what for errors you get? This one should work on all
Quote
DS18B20_Slave_Interrupt_universal_analogread_fulllib.ino
Some are spezific for the Teensy 3.

BR
Markus
5  Products / Arduino Due / Re: Comunicating ADC+ Arduino DUE with the protocol 1-wire on: March 17, 2014, 12:10:06 pm
Hmm, ok.

it would be make with DS18B20 the OneWireProtocol would work over this distance
http://www.maximintegrated.com/app-notes/index.mvp/id/148

Range is -55 to +125 Degree.

But if you want realy big distances and high precision so do something like this.

Temp-Sensor->ADC->uC->live-zero-Signal(DIN IEC 60381-1) [4..20mA]->ADC(near DUE)->Some Protocol->DUE

The current Signal is really unaffected by distance and EM-fields in the near.

So you can use any Sensor you want and go to long distances as well but you need to set up an DAC and an OP-circuit, or an IC for the Signal.
6  Products / Arduino Due / Re: Comunicating ADC+ Arduino DUE with the protocol 1-wire on: March 17, 2014, 03:20:02 am
Now that you mention it I can only remember ever seeing MAXIM/DS chips with 1-wire, but that's not to say there aren't other manufacturers.

Quote
Can I use other maker for use ADC with 1-wire protocol?
Sure, if you can find one.

Why are you so fixed on 1-wire? There are a lot more options with I2C and it's only one more wire.

______
Rob

Yes Graynomad is right there are so many options, I2C, SPI, Serial and Parallel and I'm sure Graynomad knows some more. Btw. and faster as OneWire are they too.

Start at the beginning what do you want with an external ADC? The DUE has some inside itself 12bit if I'm right, goes from 0 to 3.3Volt.
7  Products / Arduino Due / Re: Comunicating ADC+ Arduino DUE with the protocol 1-wire on: March 16, 2014, 12:58:05 pm
Quote
This library is only for the sensor DS18S20

Not really the OneWireLib (http://www.pjrc.com/teensy/arduino_libraries/OneWire.zip) is for the OneWire Protokol, the Lib from Miles Burton is specialy for the DS18S20. You need only the Onewirelib for your use. If you tell us the name of you ADC may we can give you an hint to comunicate with it.

Btw. take a look at this http://code.google.com/p/gfb/source/browse/arduino/DS2450/?r=22
8  Products / Arduino Due / Re: Comunicating ADC+ Arduino DUE with the protocol 1-wire on: March 16, 2014, 07:45:07 am
Did you try this?

http://www.pjrc.com/teensy/td_libs_OneWire.html

Works with the Due
9  Products / Arduino Due / Re: DUE PWM Frequency on: March 14, 2014, 11:18:26 am
to change the PWM frequency of all pins.. that means also the ones not in range 6,7,8,9.. you should change also TC_FREQUENCY in variant.h.

this works perfectly. i get a nice 330 kHz period for all pins now.
How did you do it in detail?
10  Development / Other Software Development / Re: 1-Wire Slave on: February 26, 2014, 03:06:33 am
I am just starting with Arduino. Do I understand right that this is not a code which can be loaded with the Arduino IDE?
Is it possible to convert it into Arduino code?

Best regards,

Christian

Yes it's doable for sure, but there are some thinks that have to be looked good at because it hat to work on all Arduino's.
11  Development / Other Software Development / Re: 1-Wire Slave on: February 22, 2014, 08:30:48 am
just for discussion,

I would like to try something similar,
I want to integrate dht22 temperature and humidity sensor to 1-wire network. Usually humidity devices for 1-wire based on some other sensors, like Honeywell HIH-3605, cause they provide data using analog pin, and it can be connected to ds2438, but having program slave based on attiny85 looks more interesting for me:)
I experimenting with usb9097 bus master, bought on ebay from China, and Arduino Due for, and code in this thread doesn't seem to work out of box, in OneWireViewer slave device appear for a second and then disappear, and it harms other 1-wire devices connected to net: ds18b20 doesn't report temperature until arduino is disconnected. I believe, there's some issue with timings.
I have idea to rewrite lib to make it fully interrupt-based, cause as for me, delayMicroseconds() in several places look ugly. Also, I have idea to refactor it to split to different classes bus-access code and device logic implementation, since I would like to be able to register two virtual 1-wire devices using 1 chip (as long as my dht22 reports both temperature and humidity, why don't simulate 2 simple devices?). The issue is only that I'm just learning microcontrollers development, I have big experience of desktop "corporate" development on different technologies, but during research of this code I learned there are so many caveats...

Yes the timing is a challenge. I would like to see an fully interrupt-based version, I only modify the Resetpulse detection and added an functions to read commands, there is an DS emulation on the web that based on interrupt and timer http://www.tm3d.de/index.php/1-wire-device-mit-avr its in german...
12  Products / Arduino Due / Re: 3.3v logic levels interface with standard TTL/CMOS logic - How to do it... on: February 03, 2014, 07:37:39 am
So to get back to the OP's questing.
The attached PDF gives you some options.

Really good paper should read from everyone, helps to keep equipment alive.
13  Development / Other Software Development / Re: 1-Wire Slave on: December 20, 2013, 09:05:54 am
Hi,

I'm a total newbie when it comes to Arduino, but I'm researching the possibility of emulating a DS1990A or similar on Arduino. The aim is to receive serial data from another device, take the necessary data (which would fit in the 48bit ROM serial number) and rewrite it as an iButton ROM ID. Then the virtual DS1990A would be set present and the attached device would read the ROM and process the serial number further, at which point the virtual iButton could be made not present and rewritten based on new incoming data.

The reason for this is that both of the existing devices have limited I/O capabilities, and this is basically the only feasible way to transmit data from one to the other.

Is this possible with the current library, or reasonable at all, in your opinion?

Should be. Look at the Tech-paper from the DS1990A what it needed I think it only response it ID so far after all
14  Development / Other Software Development / Re: 1-Wire Slave on: December 20, 2013, 08:48:36 am
Since DS2423 is discontinued, I plan to use software emulation for this device.

Do you plan to adapt your code to emulate this one ?
Yes I'm looking foward to it, at first without the overdrive support but yes it's the next step maybe in the next weeks, can you please post what you have changed so I can adopt it.
15  Development / Other Software Development / Re: 1-Wire Slave on: December 17, 2013, 03:42:19 am
I added the following to OneWireSlave.h and removed a reference to "Serial" in OneWireSlave.cpp that was not commented out.

Code:
#elif defined(__AVR__) //ATTiny
  #if dsslavepin == 0
  #define dsslaveassignedint 0
  #elif dsslavepin == 1
  #define dsslaveassignedint 1
  #elif dsslavepin == 2
  #define dsslaveassignedint 2
  #elif dsslavepin == 3
  #define dsslaveassignedint 3
  #elif dsslavepin == 4
  #define dsslaveassignedint 5
  #elif dsslavepin == 5
  #else
  #error "Not an Interrupt Pin"
  #error "Use 0, 1, 2, 3, 4 or 5"
  #define dsslaveassignedint -1
  #endif

The 0x44 is working. The 0xBE is not.
After a short while running it no longer is detected by the master does not detect the 0x44.

My program that uses the library does not use any interrupts. Another chip does all the work and communicates using an interruptable shiftIn style communications to pass data to the OWSlave chip. An LED on the second chip informs me that the 0x44 was received and the userdefined function executed. Only 0xFFFF's are reported as being read from the scratchpad.

Ian

Did someone know the rest of the "defined" for the other Arduino Modells so I can maybe complete it better
Pages: [1] 2 3 ... 15