(SOLVED) Ibutton ds1990a configuration help.

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
bercioiu
Posts: 161
Joined: Sun Feb 25, 2007 10:56 am
Location: bucharest, romania
Has thanked: 90 times
Been thanked: 34 times
Contact:

(SOLVED) Ibutton ds1990a configuration help.

Post by bercioiu »

Can someone help me with the configuration for iButton in Flowcode 5? I do not know how to set my custom components ... I need, for a simple door lock, to identify the serial number of a Dallas ds1990a to pass the lock. If there is someone who have an ready made example in Flowcode with Ibutton, please post it here. Thank you in advance!

Puiu Bercioiu
Last edited by bercioiu on Mon Feb 24, 2014 11:12 am, edited 2 times in total.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Ibutton ds1990a configuration help.

Post by Benj »

Hello,

I think the iButton devices should work with the OneWire component though I have not tried this in practice.

bercioiu
Posts: 161
Joined: Sun Feb 25, 2007 10:56 am
Location: bucharest, romania
Has thanked: 90 times
Been thanked: 34 times
Contact:

Re: Ibutton ds1990a configuration help.

Post by bercioiu »

Benj, thank for your reply!
I think the same as you, only that I do not know how to send and receive commands on that one wire device, I read the datasheet of the DS many times but no luck... that's why I posted here, maybe it is somebody who have work with it.

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: Ibutton ds1990a configuration help.

Post by Enamul »

It seems quite useful chip. I am ordering one for me. I will test and let you know how to program it.
Enamul
University of Nottingham
enamul4mm@gmail.com

bercioiu
Posts: 161
Joined: Sun Feb 25, 2007 10:56 am
Location: bucharest, romania
Has thanked: 90 times
Been thanked: 34 times
Contact:

Re: Ibutton ds1990a configuration help.

Post by bercioiu »

Thank you Enamul for your reply!

I barely wait a hearing from you... :P

bercioiu
Posts: 161
Joined: Sun Feb 25, 2007 10:56 am
Location: bucharest, romania
Has thanked: 90 times
Been thanked: 34 times
Contact:

Re: Ibutton ds1990a configuration help.

Post by bercioiu »

You had little time to take care of DS?
Thank you again!

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: Ibutton ds1990a configuration help.

Post by Enamul »

Hi

Thanks for the email. I have ordered that from china but wait for whole 1 month and asked the supplier. They immediately refunded the money and I forgot why I have ordered those. Yesterday I got those in hand and see I have ordered for you. Thanks for knocking I will test and let you know soon. Not possible in week end as those in Uni and I have returned.
Enamul
University of Nottingham
enamul4mm@gmail.com

bercioiu
Posts: 161
Joined: Sun Feb 25, 2007 10:56 am
Location: bucharest, romania
Has thanked: 90 times
Been thanked: 34 times
Contact:

Re: Ibutton ds1990a configuration help.

Post by bercioiu »

OK, I`ll wait your guidance...
Today I installed a new door and I want to upgrade the lock :)
Thank you sire! Have a nice week end!

bercioiu
Posts: 161
Joined: Sun Feb 25, 2007 10:56 am
Location: bucharest, romania
Has thanked: 90 times
Been thanked: 34 times
Contact:

Re: Ibutton ds1990a configuration help.

Post by bercioiu »

The HW is ready :D . All I have to do is to "fill" the "read_key" variable...
Image
Attachments
lock.fcf
(37.65 KiB) Downloaded 279 times
lock.gif
lock.gif (34.8 KiB) Viewed 10237 times

bercioiu
Posts: 161
Joined: Sun Feb 25, 2007 10:56 am
Location: bucharest, romania
Has thanked: 90 times
Been thanked: 34 times
Contact:

Re: Ibutton ds1990a configuration help.

Post by bercioiu »

Every morning I check my email to see if I got the email from matrixmultimedia support... I'm like a kid on Christmas morning looked under the tree ... :D

bercioiu
Posts: 161
Joined: Sun Feb 25, 2007 10:56 am
Location: bucharest, romania
Has thanked: 90 times
Been thanked: 34 times
Contact:

Re: Ibutton ds1990a configuration help.

Post by bercioiu »

Problem solved! :D

Thank to a colleague of our forum - aura809 -, I understand how Ibutton work!
It is quiet simple:
First, you have to ensure that is an Ibutton on the bus with "00_scanbus" and if there is an Ibutton, read the serial number byte by byte with the "00_get_IDByte" changing the octet from 0 to 7 for all eight bytes of the serial numbers... And that`s all folks :-)

Thank you Alen again for your help!

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times
Contact:

Re: Ibutton ds1990a configuration help.

Post by jgu1 »

Hi Bericu!

Wery nice :D Is it possible to get a copy of your FC :?:

Best regard

Jorgen.

bercioiu
Posts: 161
Joined: Sun Feb 25, 2007 10:56 am
Location: bucharest, romania
Has thanked: 90 times
Been thanked: 34 times
Contact:

Re: Ibutton ds1990a configuration help.

Post by bercioiu »

The FC its "on the way". I had to change the HW, because the RAM of the 683 was insufficient for that project. I use now 16F88 and 16x2 LCD.
I don`t have much time to finished that... Mean while, I will post an example only with the part of the reading of the serial number. You will see, its very simple :-)

Later edit:

This is an simple example to see how to read the iBUTTON.
Attachments
READ_IBUTTON.fcf
(15.5 KiB) Downloaded 239 times

Post Reply