Notifications
Clear all

Connected a DAC to an Arduino Uno

26 Posts
5 Users
0 Likes
7,586 Views
(@zeferby)
Member
Joined: 5 years ago
Posts: 355
 

Also : check the return value of endTransmission !

https://www.arduino.cc/en/Reference/WireEndTransmission

Eric


   
ReplyQuote
(@pugwash)
Sorcerers' Apprentice
Joined: 5 years ago
Posts: 923
 

@zeferby

42

Very funny, I had forgotten about that!


   
ReplyQuote
(@zeferby)
Member
Joined: 5 years ago
Posts: 355
 

Actually I learned about it on this interesting web site : https://42bots.com/about/

 

Eric


   
ReplyQuote
(@frenchstudent)
Member
Joined: 5 years ago
Posts: 5
Topic starter  

It is al right, we meet our teacher who recognize it was too difficult. He believed they were already the code on internet and it would be just to let us to discover. But not......

thanks all for your help 🙂 


   
ReplyQuote
(@pugwash)
Sorcerers' Apprentice
Joined: 5 years ago
Posts: 923
 
Posted by: @frenchstudent

It is al right, we meet our teacher who recognize it was too difficult. He believed they were already the code on internet and it would be just to let us to discover. But not......

thanks all for your help 🙂 

I couldn't find any code examples on the internet either, but it would still be quite interesting to find out how it works. An 8 channel 12bit DAC could be of use, to someone!

If your teacher just wants you to learn about I2C communication, why not try communicating with the EEPROM on the DS3231 breakout board? It is pretty straightforward and I have already started a thread about it on this forum.


   
ReplyQuote
teddy
(@teddy)
Member
Joined: 5 years ago
Posts: 41
 
Posted by: @frenchstudent

I already read the library but i never used this language so it is complicated to begin with. Nevertheless i succeeded to do the basics on the I²C but in some videos and commentary i saw only the connection between 2 Arduino Uno board and for me i just need to connect to a DAC. But i can't give some instructions to the DAC, so is it always a slaveor not?

Search: arduino dac, you'll find a bunch of hits on this discussion.


   
ReplyQuote
(@dronebot-workshop)
Workshop Guru Admin
Joined: 5 years ago
Posts: 1085
 
Posted by: @pugwash

42

Very funny, I had forgotten about that!

Now there's a coincidence. I just introduced my mother (who is 88) to the Hitchhikers Guide to the Galaxy this week, we finished watching the last episode yesterday evening.  She loved it!

Don't Panic!

? ? 

"Never trust a computer you can’t throw out a window." — Steve Wozniak


   
ReplyQuote
(@dronebot-workshop)
Workshop Guru Admin
Joined: 5 years ago
Posts: 1085
 

@teddy

Looks like you have your 10 posts now Teddy! Congratulations.

?

"Never trust a computer you can’t throw out a window." — Steve Wozniak


   
ReplyQuote
(@pugwash)
Sorcerers' Apprentice
Joined: 5 years ago
Posts: 923
 
Posted by: @dronebot-workshop
Posted by: @pugwash

42

Very funny, I had forgotten about that!

Now there's a coincidence. I just introduced my mother (who is 88) to the Hitchhikers Guide to the Galaxy this week, we finished watching the last episode yesterday evening.  She loved it!

Don't Panic!

? ? 

Perhaps you should try Time Bandits next!!


   
ReplyQuote
(@dronebot-workshop)
Workshop Guru Admin
Joined: 5 years ago
Posts: 1085
 
Posted by: @pugwash

Perhaps you should try Time Bandits nex

Actually we are starting Star Trek the Next Generation tonight. Should last us through the winter!

"Never trust a computer you can’t throw out a window." — Steve Wozniak


   
ReplyQuote
(@pugwash)
Sorcerers' Apprentice
Joined: 5 years ago
Posts: 923
 

@dronebot-workshop

By the way, I have posted a 3D version of your robot logo elsewhere on the forum today, but it has been largely ignored.

It was an education making it nevertheless!


   
ReplyQuote
Page 2 / 2