Notifications
Clear all

Code and Wiring for DB1 Motor Control  

Page 7 / 7
  RSS

Mr Owl
(@mr-owl)
Active Member
Joined: 9 months ago
Posts: 11
2020-11-20 9:45 pm  

@codecage @huckOhio

Following your posts right up to 30 min ago -will bookshelf them for now -you are light yrs ahead of me            I'll order the ATMega328 chips (MC DRIVER) and then at a later date maybe go with a FTDI board once I can digest what Mike is doing , Shields  later unless some are available  and you recommended I obtain one or want to send one :  I will order the KICAD like pro'; look into classes . I'll query Paul Whorter's U tube sessions ( Sounds like I'm back in school) .Thanks for the sources on the Fuses and plastic sheets

I'll get going on the hardware - software to follow with you assistance 

If I understood the 5v vs 3.5v issues correctly - you are taking the 5V  directly from the  PD going into the 2560 thru the USB port 

Don't have fuse holders - will get them  Here is a fuse question  The Fuse assortment package  GMA (5X20 )  V is 250Vmax  for loads  0.5 amp thru 20 amp  I though you had to match voltage as well as amps

Can I use these fuses?

Keep me in the loop

Mike  - Lagina winery is called Mari Vineyards . Chateau Chantal makes the wine for St Joseph . We, the parishioners, grow the grapes ( Vineyard at St Joseph ). Chantal bottles both an altar and a private label wine for us . If you have an interest I can forward info via email 

Thanks 

 


ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 1 year ago
Posts: 769
2020-11-20 10:48 pm  

@huckohio

Well, at the moment I do have the MEGA on WN connected to a USB port on my PC and I'm monitoring it via the serial port.  I also have my two Nano's connected to two additional USB ports on the PC while monitoring both of those via the serial monitor as well.  I can see the activity of the MEGA issuing requests to the Nanos one at a time, the Nanos seeing those requests and responding to them, and the MEGA seeing the responses.  Nothing really fancy.  Even if I disconnected the USB cables, and just applied power, they would be doing the same thing, I just could not "see" it happening.

I'm reviewing Episode 11 right now and will attempt to get the motor controllers to do whatver Bill has them doing in that episode.  I don't rightly remember, so it's almost like starting over at this episode.  

SteveG


ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 1 year ago
Posts: 769
2020-11-20 11:27 pm  

@mr-owl

Several items in your post, let's see if I can respond where it's understandable.

As for the fuses, they are what I'm using.  As for matching voltage and amperage, unless I'm completely wrong (and I have been a time or two) it's the amperage that's the most important.  Notice it says 250V Max!

And yes the 5V for the MEGA and for the two Nanos comes directly from the PD board. On the MEGA it must go to the USB port as the barrel connector requires a good bit more than 5V as Mike found out.  And on the MC board the 5V goes to the 5V pin (#27 I think) of the Nano and not to the Vin pin (#30) that Bill used in his first schematic of the MC board.

I'll find the source I had for the fuse holders as well as some other parts and get that to you as you proceed with your build.

And Mike is making a new PD board, so he may have one of each of the boards he has made to send you if you ask him.

I think it would have been much better to have sent your email and physical address via a PM rather than putting it in a post for the whole world to see.  That is just my opinion anyway.

SteveG


ReplyQuote
huckOhio
(@huckohio)
Trusted Member
Joined: 1 year ago
Posts: 84
2020-11-20 11:48 pm  
Posted by: @codecage

@huckohio

Well, at the moment I do have the MEGA on WN connected to a USB port on my PC and I'm monitoring it via the serial port.  I also have my two Nano's connected to two additional USB ports on the PC while monitoring both of those via the serial monitor as well.  I can see the activity of the MEGA issuing requests to the Nanos one at a time, the Nanos seeing those requests and responding to them, and the MEGA seeing the responses.  Nothing really fancy.  Even if I disconnected the USB cables, and just applied power, they would be doing the same thing, I just could not "see" it happening.

I'm reviewing Episode 11 right now and will attempt to get the motor controllers to do whatver Bill has them doing in that episode.  I don't rightly remember, so it's almost like starting over at this episode.  

Well damn!  Never thought of running the two boards from different USB ports!  I guess it is hard to teach old dogs new tricks.  Thanks and that's why you don't pay for shipping.


ReplyQuote
huckOhio
(@huckohio)
Trusted Member
Joined: 1 year ago
Posts: 84
2020-11-20 11:50 pm  

@mr-owl

I copied your email and address.  I would edit your post and remove that information.  


ReplyQuote
frogandtoad
(@frogandtoad)
Honorable Member
Joined: 1 year ago
Posts: 540
2020-11-21 4:25 am  

@huckohio

Posted by: @huckohio

@frogandtoad

Thank you for the reply.  I was using the char array because the I2C examples I found all used it.  I believe I tried using the string first, but the code bombed.  I will try removing the array size from the bracket.  I am trying to pass a command from the MEGA2560 to the DB1 motor controller board and Bill's design uses I2C buss for all communications.  If you know of better I2C examples I would appreciate any links you can provide.

Thanks again!

No problem, glad to help.

This forum was created as a place for like minded people to ask questions, and seek help from one another.  I think that rather than providing you with links to examples that may or may not be correct, it would be much more more beneficial for you to post the code you're having trouble with here on the forum, where you'll find a much better answer, especially when many people may be working on the same project having similar issues 🙂

I'm always more than happy to help members with their code, to the best of my ability.

Cheers.


ReplyQuote
huckOhio
(@huckohio)
Trusted Member
Joined: 1 year ago
Posts: 84
2020-11-21 5:03 am  

@frogandtoad

Your feedback solved the problem.  I just used empty brackets and the code ran correctly.  Thanks again.


ReplyQuote
frogandtoad
(@frogandtoad)
Honorable Member
Joined: 1 year ago
Posts: 540
2020-11-21 5:16 am  

@huckohio

Posted by: @huckohio

@frogandtoad

Your feedback solved the problem.  I just used empty brackets and the code ran correctly.  Thanks again.

No problem at all, it's just that without seeing your code (or anyone's for that matter), there could be other potential bugs that might cost you a lot of energy and frustration, not to mention wasted time and or money.

In the the professional programming world, it's quite common to have our code peer reviewed at preset intervals, because there is almost always something in the code that can be improved, and not necessarily seen by oneself who is too close to the work to notice.

Anyhow, good luck with the rest of your project.

Cheers.


ReplyQuote
Mr Owl
(@mr-owl)
Active Member
Joined: 9 months ago
Posts: 11
2020-11-21 5:59 pm  

@huckohio @ codecage 

Now that I'm beyond 10 post I can use PM

Mike thanks for editing the post to delete the address

Steve- found fuse holders at Jameco- PCB Mount Fuse Block 2 Pin 5X20 mm 


ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 1 year ago
Posts: 769
2020-11-21 6:54 pm  

@mr-owl

When I looked your email and street address were still there.  I edited and deleted those lines.  As an admin I think it let me remove them.  I'll check again later to be sure they didn't magically reappear.

When you order the ATMega328 chips, be sure you are getting the chips already preloaded with the Arduino boot loader, or else you are going to have to go thru the process of burning the bootloader yourself.  Something that multiple folks here have had to stumble over.  Bill had made a statement in one of his videos that the "P" on the end of the part number indicated that they were pre-burned.  I do not think that is actually the case, but it may refer to the speed of the chip.  Initially the chip was much slower but still functioned the same, and then some speed improvements were made and the "P" was added to distinguish the newer part.  That's my story and I'm sticking to it until corrected.

SteveG


ReplyQuote
huckOhio
(@huckohio)
Trusted Member
Joined: 1 year ago
Posts: 84
2020-11-21 7:19 pm  
Posted by: @mr-owl

@huckohio @ codecage 

Now that I'm beyond 10 post I can use PM

Mike thanks for editing the post to delete the address

Steve- found fuse holders at Jameco- PCB Mount Fuse Block 2 Pin 5X20 mm 

@mr-owl

I can't edit your post.  It was a poorly worded suggestion for you to go back to your post and delete your info.


ReplyQuote
Page 7 / 7