Show Posts
Pages: 1 2 [3] 4 5 ... 16
31  Development / Other Software Development / Re: 1-Wire Slave on: November 01, 2013, 04:34:49 am
I have been playing around with your libraries for programming an ATTiny85 at 8Mhz but find that it is failing to detect the 0x44 - Convert Temperature when sent. The 0xBE - Read Scratchpad  works only from your sample master and not from my program with nearly identical code that works with DS18B20 temperature sensors.

My master program detects, converts DS18B20 temperature sensors without any problem.

Not having an oscilloscope I am at a loss as to where the problem may be. I am assuming a timing issue but am not sure where to look next.

Any ideas would be most welcome.


I have there some newer version may that will help..., let me know
32  Products / Arduino Due / Re: Can anyone recommend low level USB host mass storage code for Due? on: October 04, 2013, 02:22:09 pm
Have you seen this?
33  Products / Arduino Due / Re: Connecting an Ethernet PHY to Arduino Due on: September 15, 2013, 11:05:25 am
Hello Greg,

Thank you for asking about the EMAC code. Here a brief dossier about its status:

EMAC demo sample code is running OK using Arduino IDE 1.5.2 and a third-party Due-based board, enabling it to respond to a ping command sent by a computer. See reply #67:

So far, I have a ported EMAC library (from AS6 ASF) with the Media Independent Interface (mii),  mini IP structure (mini_ip) and the phy driver (conf_eth) files. I also had to modify the emac files (.c, .h) that you mentioned, and the variant files (.c, .h) from the IDE152. Notice that IDEs 1.53 and 1.54 do not have the emac pin definition/configuration. The next step is to create the EMAC class and overload some functions under the Arduino style. Regards!

Impressiv as usually what you did, cool stuff
34  Products / Arduino Due / Arduino IDE 1.5.3 on: September 03, 2013, 05:31:15 pm
Hi Guys,

from the release note:
* sam: Added CAN library (still in early stage of development) (Palliser)

So I looked in the files but there is no CAN folder or library either, so Iooked a little confused where is it?


35  Products / Arduino Due / Re: Internal RTC with back up battery on: August 23, 2013, 08:06:34 am
I am looking for using arduino due's internal rtc with a 3v rtc battery.
RTC oscillator already assembled and connected battery to VDDBU.
But i haven't got any idea about codes.
Have someone already tried to use it?
Try this.
36  Products / Arduino Due / Re: How to write data to internal EEPROM. Arduino due. on: August 14, 2013, 10:46:33 am
Step 1. Put internal EEPROM into the Cortex M3 chip (carefully!)
Hmm yes true, if someone can make an deal with the controller on the programming port as EEPROM.

In all seriousness, the Due has no EEPROM at all. There is the possibility to store things in the FLASH memory but, since it gets totally erased every time you program the Due, this is not ideal. So, really, if you need EEPROM you've got to put it on a shield.
If someone can mod the firmware for sending special commands over uart to let the controller know someone will use the EEPROM from the controller to store or get some data.
37  Products / Arduino Due / Re: How to measure a temperature value of 5V? on: July 16, 2013, 04:14:38 am
Generaly it will works.
But actual integrated circuit are never equivalent to a perfect voltage source. There is allway a parasistic serial resistor (Rs)  inside the IC.
Generaly this parasistic resistor is very small but by security I would have a look on the datasheet.
If Rs = 1 ohm it will not affect the calibration of the voltage divisor, but if Rs = 2 kohms the top resistance will be equivalent to 2k + 5k ohms and the ratio of the voltage divisor will be modified. R= 5( 2+5 +5)= 0.416.

Yes you are right, if we know the Sensor ZDFuino works with we can my predict better with what he has to fight to get it working. Some works with 3,3V to, but then he may get some resolution issues (btw. scaling the 5V to 3,3V down is better then cut it to half for the resolution, and with an Z-Diode for the Input-Pin in the wiring there is an better safety for the Due).

In my Opinion Sensors with Current output are an better solution then Sensors with Voltage output there is no mess with resistors.
38  Products / Arduino Due / Re: How to measure a temperature value of 5V? on: July 16, 2013, 02:50:30 am
After i get the value of the voltage divider, can i "quick a dirty" multiply the current value with two in my code?

Short, yes.
39  Products / Arduino Due / Re: Access All 16 Analog Channels on: July 09, 2013, 03:25:32 am
[...] The control register has a 24 bit key - do you know if it works as a seed?

That key is actually just for write-protecting the register.  Many of the SAM3X8E's built-in peripherals require a security key (to protect against run-away code overwriting the registers?).  With the Timer Counters, for example, one of the peripheral's registers is the Write Protect Mode Register.  You need to write the security key to that register before you can write to most of the other registers in that peripheral. 

The True Random Number Generator has so few registers that, rather than having a separate one for controlling the write-protection, they combined the security key and the bit for enabling the TRNG in the Control Register.  For the TRNG, the key is always 0x524E47 (which is "RNG" if viewed as ASCII characters).  So, to enable the TRNG you write 0x524E4701 to that register, and to disable it, you write 0x524E4700.

Hope that helps!

- Madeline

To generate TNRG you can use this: is somewhere from this forum I can't remeber at this time.
void setup() {

void loop() {

uint32_t trueRandom() {
    static bool enabled = false;
    if (!enabled) {
        TRNG->TRNG_CR = TRNG_CR_KEY(0x524e47) | TRNG_CR_ENABLE;
        enabled = true;

    while (! (TRNG->TRNG_ISR & TRNG_ISR_DATRDY));
    return TRNG->TRNG_ODATA;
40  Development / Other Software Development / Re: 1-Wire Slave on: June 25, 2013, 05:45:28 am
Some new Sketches to play with for the 1-Wire-Slave:

1nd Analogread for temper

2st Serial in for temper
41  Development / Other Software Development / Re: 1-Wire Slave on: June 18, 2013, 12:49:17 pm
Now support for Teensy 3.0 and Arduino Due added.

For proper work with the T3 some changes must be done:

Add this on the void setup()
pinMode(12, INPUT);

And this on the void DS18B20() change this line
if (difference >= 380 && difference <= 800) {
if (difference >= 325 && difference <= 500) {

Thanks to Paul.

For the Due the Sample must be changed read this page about the interrupts.


Allowing to set resolution from Master or per command from slave side
42  Development / Other Software Development / Re: 1-Wire Slave on: June 15, 2013, 03:36:10 pm
Some improvement with support for the 44h command and set the "power supply" from the outsite the library.



void temper() {
  scratchpad[1] = scratchpad[1] + 1;

Sometimes the "Slave did something wrong think he didn't get the Master reset.

ROM = 28 AD DA CE 0F 00 11 5B
  Chip = DS18B20
  Powersupply = Parasite Powered
  Temperature = -0.06 Celsius, 31.89 Fahrenheit

All FF so there is some miss.

New added:
43  Development / Other Software Development / Re: 1-Wire Slave on: June 15, 2013, 10:44:26 am
Surprise to my self.

Now an expedition into interrupts.

Quick an dirty with interruptsroutine for recognizing the Master Tx Reset Pulse...

But now the  DallasTemperature Library from Miles Burton works too, for it on the other side, and recognize it as well.
44  Development / Other Software Development / Re: 1-Wire Slave on: June 15, 2013, 05:15:57 am
1st the Hardware
 Black-Board an Vinciduino, Powered by an supply
 Blue-One an Arduino Nano Powered by USB
 And 3 real DS18B20 Powered from the Nano external.

2nd the Serial from the Nano
 4 DS18B20
 The last is the Arduino-Slave what you can see parasite Powered and burning@155°C
45  Development / Other Software Development / Re: 1-Wire Slave on: June 15, 2013, 05:09:12 am
It's about time to move some dust.

Moving from this way there to this,887.0.html. Thanks to all that Guys what they did.

I was able to start this. Files in the Attachment.

DS18B20_Slave.ino                        --> the Slave in Arduinostyle
OneWireSlave.cpp/.h                    --> the library for it
(did not work on Due or Teensy 3)

DS18x20_Temperature_edited.ino   --> an little edited Version of Paul Stoffregen's File from the last OneWirelib (2.2)

The Arduino pretend on with the DS18B20_Slave to be an DS18B20 with an temp of 155°C (clearly above the capabilities of the DS18B20 (125)) parasite powered. But under heavy duty.

What didn't work is the DallasTemperature Library from Miles Burton there are some problems with reset_search and the reset at the end of some parts.

// reads the device's power requirements
bool DallasTemperature::readPowerSupply(uint8_t* deviceAddress)
  bool ret = false;
  if (_wire->read_bit() == 0) ret = true;
  _wire->reset();     --> this line is not good fore the cloned DS18B20 without it works
  return ret;

May someone can help drive this forward to getting an working and universal library. Perhaps an interrpt driven Initiaization Timing can bring success but I'm not an expert for that.

This is really experimental. Nothing is convenient on this.

Pictures below:
Pages: 1 2 [3] 4 5 ... 16