Main Menu
Counter
This page today ...
total: 0
unique: 0

This page ever ...
total: 161
unique: 92

Site ...
total: 2491
unique: 1023
Online
  • Guests: 1
  • Members: 0
  • Newest Member: ole
  • Most ever online: 36
    Guests: 36, Members: 0 on Tuesday 11 April 2017 - 04:26:13
Chatbox
You must be logged in to post comments on this site - please either log in from the Login box or from here.If you are not registered click here to signup.


bullet Kim
4 months ago
test
Royalsystems blog

MCS Electronics Forum

  • BASCOM-AVR : ADCA on Xmega384C3 : NEWTOPIC



    Hello,

    Need use the Xmega384C3 in next project and messure a voltage on PortA.3, but the compiler show a lot of errors, what is wrong, i have no experience with xmega

    Config Adca = Single , Convmode = Unsigned , Resolution = 12bit , Dma = Off , Reference = Int1v , Event_mode = None , Prescaler = 32 , Ch3_gain = 1 , Ch3_inp = Single_ended , Mux3 = 0

    W = Getadc(adca , 3 , Mux) ' is this correct?

    the Ch3_inp = Single_ended 'i think this produce the errors

    Thank for any help

    Best regards
    P_Santos

    [b:ae6783c480][color=red:ae6783c480](BASCOM-AVR version : 2.0.7.8 )[/b:ae6783c480][/color:ae6783c480]

  • BASCOM-AVR : Is this a right way to write code for Stepper Motor? : REPLY



    Glad to help!

  • BASCOM-AVR : Is this a right way to write code for Stepper Motor? : REPLY



    Hello luizabbadia,

    Thank you for sharing the link, i can use that in my other projects also containing Servos..

    Thank you
    Regards
    Aniruddha

  • BASCOM-AVR : Is this a right way to write code for Stepper Motor? : REPLY



    Hello Duval JP Sir,

    Thank you for the nice and fast examples.
    I will go through it.

    Thank You

    Regards
    Aniruddha

  • BASCOM-AVR : Is this a right way to write code for Stepper Motor? : REPLY



    Yes step motor <> RC motor, but in terms of interface.
    About timing, using Glena code you can do it...yes you can use Arduino Uno + CNC Shield or Mega2560 and Ramps as interface...but the timing can be achieved with Glena code changing the 20mS interval in between pulses and the pulses in between the phase pulses...exotic...or use GRBL ...if you will but...that´s not Bascom...

  • BASCOM-AVR : Is this a right way to write code for Stepper Motor? : REPLY



    hi Aniruddha,

    Yes you can do by yourself a driver for stepper motor but before you can see this link

    https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=13752&highlight=stepper+motor

    Other way : read the 78 links about stepper motor on the forum (search)

    and also look at what you can do with allegro IC A4988
    and have a think to your friend Ben :smt059
    https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=11969&highlight=a4988


    or the module Pololu ...

    Bon courage JP :wink:

  • BASCOM-AVR : Is this a right way to write code for Stepper Motor? : REPLY



    RC servo <> stepper motor.

  • BASCOM-AVR : Is this a right way to write code for Stepper Motor? : REPLY



    Hi! I think there will be many ways to do it, but, as a start point:
    I remember there is a link to Glena program
    https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=6800&highlight=
    It´s a eight servo controller and maybe, with little study you can modify it in such a manner that you´ll use 4 channels alternating like this:
    Channel#1 -> the first wire of the stepper motor, channel #2 will be one delay, channel#3 the second wire of the stepper motor, channel #4 another delay and so on untill you use 8 channels and 4 wires, being 4 channels to deal with and compose your delay that will affect the speed, but I don´t know how much.

    It is not the best way but you´ll have an excellent program from the shelf in your hands, oppotunity to learn a lot and other advantages, I am not a great programmer but I´d start with this program and thank Glena a lot for this .
    Hope you get there!!

  • BASCOM-AVR : Two 12bit spi adc : REPLY



    Hello everyone..

    I got the answer, it was a pair of 1K resistance in between the ADC's and controller at DOUT and CLOCK pins. Now its working flawlessly... Thanks to all of you for such a good guidance and enthusiasm.

    Thanks once again. will surely post the entire project once it gets done, along with video.

    Regards
    Aniruddha

  • BASCOM-AVR : Two 12bit spi adc : REPLY



    Hi,

    thanks for your suggestion "Laborratte", but its not about receiving data from MAX189 in correct order, that i am getting, its about interfacing two MAX189 with one controller and obtaining correct data without the undefined jump in between readings...

| Date published: not known
Back to newsfeed list
Welcome
Username or Email:

Password:




[ ]
[ ]
Headlines

»BASCOM-AVR : ADCA on Xmega384C3 : NEWTOPIC
Hello, Need use the Xmega384C3 in next project and messure a voltage on PortA.3, but the compiler show a lot of errors, what is...
»BASCOM-AVR : Is this a right way to write code for Stepper Motor? : REPLY
Glad to help!
»BASCOM-AVR : Is this a right way to write code for Stepper Motor? : REPLY
Hello luizabbadia, Thank you for sharing the link, i can use that in my other projects also containing Servos.. Thank you R...
»BASCOM-AVR : Is this a right way to write code for Stepper Motor? : REPLY
Hello Duval JP Sir, Thank you for the nice and fast examples. I will go through it. Thank You Regards Aniruddha ...
»BASCOM-AVR : Is this a right way to write code for Stepper Motor? : REPLY
Yes step motor <> RC motor, but in terms of interface. About timing, using Glena code you can do it...yes you can use Arduino Uno...
»BASCOM-AVR : Is this a right way to write code for Stepper Motor? : REPLY
hi Aniruddha, Yes you can do by yourself a driver for stepper motor but before you can see this link https://www.mcselec.com...
»BASCOM-AVR : Is this a right way to write code for Stepper Motor? : REPLY
RC servo <> stepper motor.
»BASCOM-AVR : Is this a right way to write code for Stepper Motor? : REPLY
Hi! I think there will be many ways to do it, but, as a start point: I remember there is a link to Glena program https://www.mc...
»BASCOM-AVR : Two 12bit spi adc : REPLY
Hello everyone.. I got the answer, it was a pair of 1K resistance in between the ADC's and controller at DOUT and CLOCK pins. N...
»BASCOM-AVR : Two 12bit spi adc : REPLY
Hi, thanks for your suggestion "Laborratte", but its not about receiving data from MAX189 in correct order, that i am getting,...


Date published: not known
Details

»Fehler bei kleinen CTC-Vergleichswerten
Hallo liebes Forum, ich möchte mittels Arduino mini (ATmega328P) und einem kleinen 4-bit-R/2R-Netwerk Sinusse erzeugen von maximal 2600 Hz. In dem...
»ATtiny44 TIMER0
Hallo zusammen ! ich habe im Datenblatt des ATtiny44 gesehen, dass die TIMER0 und Timer1 BEIDE PWM können und es 4 PWM Kanäle gibt (dort heisst es...
»mega1284 ports
Hallo Ich habe ein (einfaches ?) Problem: Der folgende Code (Ausschnitt) geht mit dem Mega32 aber nicht mit dem Mega1284. (Portc.2 - Portc.5 schalt...
»WS2812B Nachbrenner für RC Modellflugzeuge (Nachtflug)
Ein neuer Nachtflieger hat das (Mond-)Licht der Welt erblickt. Einige technische Daten: Gebaut aus EPP 20g/dm³ Spannweite: 100 cm Länge: 89 cm ...
»Vorüberlegungen zu einem 'Sisyphus table'
Ich hab' neulich in einem anderen Forum einen Beitrag gefunden, der mich sehr interessiert. Da geht es um den Nachbau eines 'Sisyphus table' youtu....
»I2C-Scanner
Ein kleines nützliches BASCOM-Programm zum Herausfinden oder Verifizieren von I2C-Adressen von Sensoren o.ä. Um in einem Projekt mit I2C-Slaves Feh...


Date published: Tue, 26 Sep 2017 06:54:27 +0000
Details

»93c46 editor programmer bascom &amp; vb93c46 editor programmer bascom &amp; vb

»93c46 Bascom &amp; VB693c46 Bascom &amp; VB6

»Analog clock on SSD1289 3.2" 240x320 lcdAnalog clock on SSD1289 3.2" 240x320 lcd

»Nextion HMI lcd with KaraDio the best webradio esp8266Nextion HMI lcd with KaraDio the best webradio esp8266

»Adding 240x320 lcd to the WifiWebRadioAdding 240x320 lcd to the WifiWebRadio

»IV-17 Nixie clock GPS set time &amp; date at power onIV-17 Nixie clock GPS set time &amp; date at power on



Date published: not known
Details

»Bascom Can Bus Sniffer
»R.I.P Ben Zijlstra
Remembering Ben Zijlstra We hope that people who love Ben will remember and celebrate his life. more info at MCS www.mcselec.com/index2.ph...
»KaRadio webradio ESP8266
The Dimitris board is available at https://github.com/dsaltas/WiFi-WebRadio  This is a hardware project for Ka-Radio
»93C46
small tool to edit 93C46 eeprom written in BascomAVR & VB  Bascom control the 93C46 so we sent data via comport from VB code will be added later ...
»nRF24L01+ RC Controller
This is a RC controller TX & RX unit with nRF24L01+ nRF24L01+ / with PA and LNA for longer range facts: TX 1 x potmeter for servo ...
»RAW lcd
Connecting RAW lcd to atmega8 the lcd is 6 digit + time glass LCD Hour Meter for  tractor ,air compressor, ect the lcd have 4 com pins  & 14...


Date published: not known
Details


Proudly powered by e107 which is released under the terms of the GNU GPL License.