Show Posts
Pages: 1 [2] 3 4 ... 15
16  Development / Other Software Development / Re: 1-Wire Slave on: December 17, 2013, 03:07:12 am
More testing today and the library is working as expected. Yeah!!

I still have a problem that it stops responding after awhile, That is a strange one but I have a starting point with working communications.

Btw. did you make some other changes anyway, may can you post you Sketch?
17  Using Arduino / Networking, Protocols, and Devices / Re: OneWire library with overdrive support on: December 17, 2013, 02:47:48 am
Really nice, did you test it with an Teensy 3 allready?

May I bring the overdrive inside the OneWire Slave Library some day but I think an 16Mhz AVR would not fit it, so it would only make sense for an Due or Teensy 3 and above
18  Development / Other Software Development / Re: 1-Wire Slave on: December 16, 2013, 01:54:10 pm
Th ATTiny85 can clock internally at either 1mhz or 8mhz or externally with a crystal at 20mhz.
I run it a 8mhz.

May the internal RC is not accurate enough for it
19  Development / Other Software Development / Re: 1-Wire Slave on: December 16, 2013, 04:52:40 am
The ATTiny85 running at 8mhz, although the chip is capable of running at 20mhz with external clocking.

Crystal or internal RC?

At the moment I don't know if the Leonardo I tested it sometimes get out of step or it's a load problem, I have run it on two Teensy 3 for hours with one miss on temp conversions.

I know if I let run an Leonardo direct against an other, the on who pretends an DS18B20 can't response in time with 2 real DS18B20 in chain it works most the time, only a few "temp conversions" are dropped.
20  Development / Other Software Development / Re: 1-Wire Slave on: December 15, 2013, 06:20:40 am
More testing today and the library is working as expected. Yeah!!

I still have a problem that it stops responding after awhile, That is a strange one but I have a starting point with working communications.


How often did you poll your uC to get the informations? The Problem is if the uC is too often called he would get out of sync and can't responce anymore, at the moment I have no idea for it. How fast is the ATTiny?
21  Development / Other Software Development / Re: 1-Wire Slave on: November 04, 2013, 05:41:44 am
I am receiving the following errors when compiling

. . ./OneWireSlave.h:133:4: error: #error "Not an Interrupt Pin"
. . ./OneWireSlave.h:134:4: error: #error "Use 2 or 3"

Any ideas?

Oh I know, the  ATTiny85 is not part in the lib can you give me the pins in the IDE where the ATTiny85 has interrupts so I can adopt it for somethink like this.

#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) //Arduino Mega
  #if dsslavepin == 2
  #define dsslaveassignedint 0
  #elif dsslavepin == 3
  #define dsslaveassignedint 1
  #elif dsslavepin == 18
  #define dsslaveassignedint 5
  #elif dsslavepin == 19
  #define dsslaveassignedint 4
  #elif dsslavepin == 20
  #define dsslaveassignedint 3
  #elif dsslavepin == 21
  #define dsslaveassignedint 2
  #error "Not an Interrupt Pin"
  #error "Use 2, 3, 18, 19, 20 or 21"
  #define dsslaveassignedint -1

so your uC can be supported.
22  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
23  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?
24  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
25  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?


26  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.
27  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.
28  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.
29  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.
30  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;
Pages: 1 [2] 3 4 ... 15