Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Search found 64 matches
www.mcselec.com Forum Index
Author Message
  Topic: Help with sending inputs to serial port
Robert_d1968

Replies: 4
Views: 444

PostForum: BASCOM-AVR   Posted: Tue Apr 03, 2018 4:06 pm   Subject: Help with sending inputs to serial port
@ albertsm

Yes I see your point, I have not looked at the newest documents, my bad on that one.

But a little code example would have been better than the explanation given.

There are still li ...
  Topic: Help with sending inputs to serial port
Robert_d1968

Replies: 4
Views: 444

PostForum: BASCOM-AVR   Posted: Tue Apr 03, 2018 2:18 pm   Subject: Help with sending inputs to serial port
Hello everybody,

I'm currently trying to send from an ATMEGA8L to a terminal program the input status of all inputs on the ATMEGA8L to that terminal.

I have set the communication specs to 115200 ...
  Topic: ATmega88 and adc problem *SOLVED*
Robert_d1968

Replies: 5
Views: 341

PostForum: BASCOM-AVR   Posted: Sun Jan 08, 2017 11:16 am   Subject: ATmega88 and adc problem *SOLVED*
Thanks for the pointer,

I did check the datasheet and you are correct. Sad

I guess I will just switch to the atmega128 instead, as I still need a lil more I/O.

Thanks for the help,

Rober ...
  Topic: ATmega88 and adc problem *SOLVED*
Robert_d1968

Replies: 5
Views: 341

PostForum: BASCOM-AVR   Posted: Sun Jan 08, 2017 10:15 am   Subject: ATmega88 and adc problem *SOLVED*
Hello everybody,

I'm using an ATmega88 for debug reasons (OCD). I set up the ADC to have one output PORTC.7 and one input on PORTC.2

The rest of portc is used for ADC readings.

Config Portb.6 ...
  Topic: Non Linear LED and PWM
Robert_d1968

Replies: 11
Views: 626

PostForum: BASCOM-AVR   Posted: Wed Nov 02, 2016 8:56 pm   Subject: Non Linear LED and PWM
Yes on the right track, it reads the right way.

As for dividing by 4 it's not needed, as the adc and pwm are both 10 bit.

It works well thus far in the debugger, tomorrow I will test it out on t ...
  Topic: Non Linear LED and PWM
Robert_d1968

Replies: 11
Views: 626

PostForum: BASCOM-AVR   Posted: Wed Nov 02, 2016 10:17 am   Subject: Non Linear LED and PWM

Calc_adc = end_adc - Start_adc
Calc_adc = Start_adc / Calc_adc


Setpoint = Setpoint / Calc_adc
if setpoint < Start_Adc then
Setpoint = Setpoint + Start_adc
else
...
  Topic: Non Linear LED and PWM
Robert_d1968

Replies: 11
Views: 626

PostForum: BASCOM-AVR   Posted: Tue Nov 01, 2016 3:56 pm   Subject: Non Linear LED and PWM
Dim Current_val As Word '- Current sensor reading
Dim Setpoint As Word '- Holds our Thumb-wheel setpoint
Dim Start_adc As W ...
  Topic: Non Linear LED and PWM
Robert_d1968

Replies: 11
Views: 626

PostForum: BASCOM-AVR   Posted: Tue Nov 01, 2016 2:47 pm   Subject: Non Linear LED and PWM
Thank-you for the clarification,

I'll give it a go..

By the way, your signature is quite cool, ingenues

Robert
  Topic: Non Linear LED and PWM
Robert_d1968

Replies: 11
Views: 626

PostForum: BASCOM-AVR   Posted: Tue Nov 01, 2016 2:22 pm   Subject: Non Linear LED and PWM
Just to make sure I got this right:


int start_adc = 512
int end_adc = 1023

float calc_adc = start_adc / (end_adc - start_adc)

out_adc = ( getadc(0) / calc_adc) + start_adc

int is an ...
  Topic: Non Linear LED and PWM
Robert_d1968

Replies: 11
Views: 626

PostForum: BASCOM-AVR   Posted: Tue Nov 01, 2016 1:39 pm   Subject: Non Linear LED and PWM
Hello everybody,

I'm trying to control an LED's brightness via PWM, simple job I would think.

An AT Mega 8a is being used in this project along with an LTC6102 current monitor. the problem lies ...
  Topic: FT800
Robert_d1968

Replies: 53
Views: 4985

PostForum: BASCOM-AVR   Posted: Sat Feb 28, 2015 12:50 pm   Subject: FT800
Thank you guys,

I have been working with the FT800 and the STM32F407 series of MCU's.

I was wondering if Bascom would put this together, Now that you have I would like to get the beta release fo ...
  Topic: HHO Generator
Robert_d1968

Replies: 13
Views: 1792

PostForum: BASCOM Project Blog   Posted: Fri Aug 22, 2014 6:43 pm   Subject: HHO Generator
This is the Board I intend to use to run the project, It's a 4 layer board and was built in about 5 hours of time.
If all works out, I will upload the board, schematics and artwork.
  Topic: HHO Generator
Robert_d1968

Replies: 13
Views: 1792

PostForum: BASCOM Project Blog   Posted: Fri Aug 22, 2014 6:38 pm   Subject: HHO Generator
The top cover has been completed, needs a 24 hour cure time for the silicone used. (maybe more)
  Topic: HHO Generator
Robert_d1968

Replies: 13
Views: 1792

PostForum: BASCOM Project Blog   Posted: Thu Aug 21, 2014 5:19 pm   Subject: HHO Generator
What is to gain here? Hmmm....

This water is to be converted into HHO (2H, 1O) this is done via a fuel cell, yes using electricity, and fed to the generator to run it.
This is done very effici ...
  Topic: HHO Generator
Robert_d1968

Replies: 13
Views: 1792

PostForum: BASCOM Project Blog   Posted: Sun Aug 17, 2014 11:21 am   Subject: HHO Generator
Yes, that does seem like the best place for it.

How Do I go about moving it there?

I can only edit my posts, if you know of a way to move it, please enlighten me.

Thanks,

Robert
 
Page 1 of 5 Goto page 1, 2, 3, 4, 5  Next
All times are GMT + 1 Hour
Jump to: