RC Truck and Construction  

Go Back   RC Truck and Construction > RC Tech section. > Electronics tech

Electronics tech Anything to do with the electronics in a model. Lights, Radio, ESC, Servo, Basic electrical.


Reply
 
Thread Tools Display Modes
  #1  
Old 03-01-2016, 01:34 PM
davidmc36 davidmc36 is offline
Newbie
 
Join Date: Aug 2015
Posts: 3
davidmc36 is on a distinguished road
Default What is wrong with this circuit?

When powered by 5V battery all is good.

What is wrong with the circuit where AVR is powered by 5V regulator? Videos show results.

Code:
// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin 1 (ATTiny pin6)and 3 (ATTiny pin 2)as outputs.
  pinMode(1, OUTPUT);
  pinMode(3, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(1, HIGH);
  digitalWrite(1, LOW);   // turn the LED on (LOW is the voltage level to turn on TIP117 PNP Darlington)
  delay(250);
  digitalWrite(1, HIGH);    // turn the LED off by making the voltage HIGH 
  digitalWrite(3, HIGH);
  digitalWrite(3, LOW);  
  delay(50);              
  digitalWrite(3, HIGH);    
  delay(100);             
  digitalWrite(3, LOW);   
  delay(50);              
  digitalWrite(3, HIGH);    
  delay(100);             
  digitalWrite(3, LOW);  
  delay(50);              
  digitalWrite(3, HIGH);    
  delay(900);              
}
https://www.youtube.com/watch?v=uBVoxlwcNJI

https://www.youtube.com/watch?v=UkOGMdlGNM0

https://www.dropbox.com/s/ggebjuv5dd...22300.jpg?dl=0

https://www.dropbox.com/s/6uoxfq369z...20425.jpg?dl=0

Last edited by davidmc36; 03-01-2016 at 01:43 PM.
Reply With Quote
  #2  
Old 03-21-2016, 01:10 PM
JamesBC JamesBC is offline
Newbie
 
Join Date: Jan 2016
Location: Abbotsford, BC
Posts: 40
JamesBC is on a distinguished road
Default Re: What is wrong with this circuit?

Is this using what is known as a picaxe? I have been looking at those somewhat, just not sure where to start with them.

Flasher looks fine to me.

Jim
Reply With Quote
  #3  
Old 03-28-2016, 09:03 PM
davidmc36 davidmc36 is offline
Newbie
 
Join Date: Aug 2015
Posts: 3
davidmc36 is on a distinguished road
Default Re: What is wrong with this circuit?

Just using an ATTiny. coding is dead simple for strobe/beacon.

Got the issue sorted out as it was "flashing off" not "on"

http://www.rccanada.ca/rccforum/showthread.php?t=411018

It is back to this flashing pattern with AVR run from 5V and lights from 6.6 versus the bad flashing pattern when trying to run it without the extra circuitry.

https://www.youtube.com/watch?v=uBVoxlwcNJI
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:13 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.