Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 245 matches
www.mcselec.com Forum Index
Author Message
  Topic: Atmega328pb - cannot get any LED's to turn on!?
Printpix52

Replies: 23
Views: 896

PostForum: BASCOM-AVR   Posted: Sat Jan 09, 2021 12:25 am   Subject: Atmega328pb - cannot get any LED's to turn on!?
To calculate resistances......

https://www.inventable.eu/paginas/LedResCalculatorSp/LedResCalculatorSp.html
  Topic: Atmega328pb - cannot get any LED's to turn on!?
Printpix52

Replies: 23
Views: 896

PostForum: BASCOM-AVR   Posted: Sat Jan 09, 2021 12:20 am   Subject: Atmega328pb - cannot get any LED's to turn on!?
I think the problem is the LED resistor replaced by 82 ohms. Very Happy
  Topic: ADC in ATTINY13
Printpix52

Replies: 26
Views: 645

PostForum: BASCOM-AVR   Posted: Thu Jan 07, 2021 3:39 am   Subject: ADC in ATTINY13
Hi,
Pin 1 (ADC0) is a RESET pin, so unless you change the fuse settings, it will reset at the $regfile = "attiny13.dat"
$hwstack = 10
$swstack = 10
$framesize = 16

$crystal = 1200000 ...
  Topic: Atmega328pb - cannot get any LED's to turn on!?
Printpix52

Replies: 23
Views: 896

PostForum: BASCOM-AVR   Posted: Thu Jan 07, 2021 3:16 am   Subject: Atmega328pb - cannot get any LED's to turn on!?
Positive anode and negative cathode turn on led and positive anode and positive cathode off led.

Snddataled Alias Portd.6
Config Snddataled = Output 'Output
Re ...
  Topic: ADC in ATTINY13
Printpix52

Replies: 26
Views: 645

PostForum: BASCOM-AVR   Posted: Tue Jan 05, 2021 4:28 am   Subject: ADC in ATTINY13
Very Happy Very Happy Very Happy Smile Smile

Try these as it works fine.

$regfile = "m328pdef.dat"
$Crystal=16000000
$hwstack=40
$swstack = 16
$framesize = 32

$sim
$baud = 9600

RELAY Alias Pinb.0
...
  Topic: ADC in ATTINY13
Printpix52

Replies: 26
Views: 645

PostForum: BASCOM-AVR   Posted: Tue Jan 05, 2021 3:56 am   Subject: ADC in ATTINY13
Config Adc = Single , Prescaler = Auto , Reference = Avcc
Start Adc
  Topic: ADC in ATTINY13
Printpix52

Replies: 26
Views: 645

PostForum: BASCOM-AVR   Posted: Tue Jan 05, 2021 3:52 am   Subject: ADC in ATTINY13
When the voltage drops below "29", de-activate a relay. When it rises above, activate the relay

Yes, the maximum ADC input voltage is 5 volts.
  Topic: ADC in ATTINY13
Printpix52

Replies: 26
Views: 645

PostForum: BASCOM-AVR   Posted: Tue Jan 05, 2021 3:44 am   Subject: ADC in ATTINY13
Schematic

Is it a battery charger? what do you use this circuit for? Surprised Surprised
  Topic: ADC in ATTINY13
Printpix52

Replies: 26
Views: 645

PostForum: BASCOM-AVR   Posted: Tue Jan 05, 2021 3:41 am   Subject: ADC in ATTINY13
How are you connected outside JP1?
  Topic: ADC in ATTINY13
Printpix52

Replies: 26
Views: 645

PostForum: BASCOM-AVR   Posted: Tue Jan 05, 2021 3:37 am   Subject: ADC in ATTINY13
JP1 at 12 volts? Feed yourself with 5 volts.

IC2 is a 5 volt regulator


Yes.
  Topic: ADC in ATTINY13
Printpix52

Replies: 26
Views: 645

PostForum: BASCOM-AVR   Posted: Tue Jan 05, 2021 3:30 am   Subject: ADC in ATTINY13
In the schematic representation we can see that the fixed terminals are 1 and 2, while the cursor is the number 3, which is represented by an arrow.
  Topic: ADC in ATTINY13
Printpix52

Replies: 26
Views: 645

PostForum: BASCOM-AVR   Posted: Tue Jan 05, 2021 3:25 am   Subject: ADC in ATTINY13
JP1 at 12 volts? Feed yourself with 5 volts.
  Topic: ADC in ATTINY13
Printpix52

Replies: 26
Views: 645

PostForum: BASCOM-AVR   Posted: Tue Jan 05, 2021 3:22 am   Subject: ADC in ATTINY13
How are you connected JP1?
  Topic: ADC in ATTINY13
Printpix52

Replies: 26
Views: 645

PostForum: BASCOM-AVR   Posted: Tue Jan 05, 2021 3:15 am   Subject: ADC in ATTINY13
Potentiometer de 10 K and 5.1 volt zener.
  Topic: ADC in ATTINY13
Printpix52

Replies: 26
Views: 645

PostForum: BASCOM-AVR   Posted: Tue Jan 05, 2021 3:09 am   Subject: ADC in ATTINY13
Yes ADC(0) PB.5 - PIN1
 
Page 1 of 17 Goto page 1, 2, 3 ... 15, 16, 17  Next
All times are GMT + 1 Hour
Jump to: