Notifications
Clear all

IR Modual

22 Posts
5 Users
0 Likes
3,347 Views
codecage
(@codecage)
Member Admin
Joined: 5 years ago
Posts: 1037
 

@xybitz

Like I said, I have not watched those two as of yet, but have now started to follow along on his new robot car series that will use a bluetooth transmitter and receiver.

Amazon says my 'car' should arrive today!

SteveG


   
ReplyQuote
XybitZ
(@xybitz)
Member
Joined: 4 years ago
Posts: 12
Topic starter  

@codecage lets hope it makes  it there!!! Need to post  your progress.

Let's MAKE the droids you've been looking for...


   
ReplyQuote
codecage
(@codecage)
Member Admin
Joined: 5 years ago
Posts: 1037
 

@xybitz

It arrived 5 minutes ago!

SteveG


   
ReplyQuote
robotBuilder
(@robotbuilder)
Member
Joined: 5 years ago
Posts: 2042
 

@xybitz

I didn't give up on the code. It does exactly what i needed.

What I meant was,  don't give up on making your code better.  But if it does all that you need (now?) I guess that is good enough.  As a self taught electronics and programming hobbyist I do tend to get carried away with all the possibilities.

 

 


   
ReplyQuote
XybitZ
(@xybitz)
Member
Joined: 4 years ago
Posts: 12
Topic starter  

@robotbuilder Oh is see. Yes I am always looking for the most efficient code possible. I try to code with as few lines as possible. 

Let's MAKE the droids you've been looking for...


   
ReplyQuote
robotBuilder
(@robotbuilder)
Member
Joined: 5 years ago
Posts: 2042
 

@xybitz

I try to code with as few lines as possible. 

 

Actually as a self taught amateur,  with time limitations to spend on my hobby,  I look for,  and try to write,  easy to read and understand code. This means having it written as closely to a human language as possible.

cout << "hello world" << endl;
vs
PRINT "hello world"

With an ir remote control you are really sending it individual commands which works well for a tv but not really for continual manual control over a motor or LED. The delay between each command is rather long requiring a software delay to keep the LED or motor running and it is the end of the software delay that signals a key_released event.  It would be better if it just sent the command once when the key is pressed and then send another command when the key is released.

Receiver code:
IF button1_pressed then turnOnMotor1
If button1_released then turnOffMotor1

 

 


   
ReplyQuote
XybitZ
(@xybitz)
Member
Joined: 4 years ago
Posts: 12
Topic starter  

I been working on the WALL-e and I have printed the mounting trays for the electronics and mounted the gear motors with the wires soldered. I need to order connectors for easy disconnect of the components like the battery to the motor driver and the Arduino. I also need to order a power switch and create a custom harness.

Also on my list is to buy micro servos.

20200712 094252
20200712 094237
20200712 100414[1]
This post was modified 4 years ago by XybitZ

Let's MAKE the droids you've been looking for...


   
ReplyQuote
Page 2 / 2