Notifications
Clear all

Code and Wiring for DB1 Motor Control

113 Posts
14 Users
14 Likes
14.5 K Views
AlexTheProgrammer
(@alextheprogrammer)
Eminent Member
Joined: 3 months ago
Posts: 19
 

Do you guys think that using ATTINY88 board instead of Arduino Nano for the motor controller boards for DB1 is a good idea? https://dronebotworkshop.com/real-robot-009/

The reason why I'm considering it instead of nano is the price - 10 pack of these boards cost $21: https://www.amazon.com/AITRIP-Development-Digispark-ATmega328-Compatible/dp/B09YRT33BG/ref=sr_1_12_sspa?crid=1DR9PEIQNG5QO&keywords=arduino%2Bnano&qid=1666555592&qu=eyJxc2MiOiI1LjA0IiwicXNhIjoiNC41MyIsInFzcCI6IjQuNDIifQ%3D%3D&sprefix=arduino%2Bnano%2Caps%2C342&sr=8-12-spons&th=1

 

while 1 original Nano costs $30: https://www.amazon.com/Arduino-Nano-33-IoT/dp/B07VW9TSKD/ref=sr_1_20?crid=1DR9PEIQNG5QO&keywords=arduino+nano&qid=1666754426&qu=eyJxc2MiOiI1LjA0IiwicXNhIjoiNC41MyIsInFzcCI6IjQuNDIifQ%3D%3D&sprefix=arduino+nano%2Caps%2C342&sr=8-20

Or should I just try to make my Arduino Mega do as many things as possible (fully control two motors, interact with 10 ultrasonic sensors). Bills approach of separation of concerns very well matches some software engineering best practices so I think it might be better to keep those functions on separate units. Also, I think he increased the clock rate for those Nanos to increase the motor PWM frequency so I can't do that on Mega that's responsible for tons of other things. 


   
ReplyQuote
Ron
 Ron
(@zander)
Famed Member
Joined: 2 years ago
Posts: 3915
 

@alextheprogrammer I just bought 6 Nanos for $3.57 CDN plus low shipping from AliExpress

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
AlexTheProgrammer
(@alextheprogrammer)
Eminent Member
Joined: 3 months ago
Posts: 19

   
ReplyQuote
Ron
 Ron
(@zander)
Famed Member
Joined: 2 years ago
Posts: 3915
 

@alextheprogrammer The only parts I have ever had an issue with were from eBay, everything from AliExpress has been great.

These are what I ordered LINK

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
AlexTheProgrammer
(@alextheprogrammer)
Eminent Member
Joined: 3 months ago
Posts: 19
 

@zander How long does it regularly take for them to arrive? and with type of shipping service do you use? the cheapest one? or the standard?

This post was modified 3 months ago by AlexTheProgrammer

   
ReplyQuote
Ron
 Ron
(@zander)
Famed Member
Joined: 2 years ago
Posts: 3915
 

@alextheprogrammer Some take quite a while. I have never picked a shipping service that I can recall but if I did it would be the cheapest otherwise I would use Amazon.

The way I look at it is if the buy is garbage I am only out $20 to $50.

I should also mention I have had a few that were either lost, broken, or wrong and got my money back in all cases, and even got extra parts or got to keep the parts. Return shipping is too expensive to bother.

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
AlexTheProgrammer
(@alextheprogrammer)
Eminent Member
Joined: 3 months ago
Posts: 19
 

@zander Have you bought any more serious from AliExpress than arduinos? like a fume extractor, soldering mat, or maybe even servos? I need a lot of servos and they're pricey! 


   
ReplyQuote
Ron
 Ron
(@zander)
Famed Member
Joined: 2 years ago
Posts: 3915
 

@alextheprogrammer Boards, sensors, components, SSD's, 18650's (some fake), tools, cases, proto boards, testers.

Arduino says and I agree, in general, the const keyword is preferred for defining constants and should be used instead of #define
"Never wrestle with a pig....the pig loves it and you end up covered in mud..." anon
My experience hours are >75,000 and I stopped counting in 2004.
Major Languages - 360 Macro Assembler, Intel Assembler, PLI/1, Pascal, C plus numerous job control and scripting


   
ReplyQuote
Page 8 / 8