Friday, April 3, 2020

Node MCU Arduino IDE in Ubantu

Install Arduino IDE on Ubuntu

1. Download Arduino linuxIDE from https://www.arduino.cc/en/main/software
2. Extract it (tar xvf FILENAME)and Runit (./install.sh)

USB Serial Port Setup

In order to upload code an arduino board over USB, you need to add your user to the `dailout` group and connect the snap to the `raw-usb` socket. Open a terminal window, run the following commands an *reboot* your computer.

> `sudo usermod -a -G dialout $USER`

> `sudo snap connect arduino:raw-usb`

Now restart your computer and you're good to go!

NodeMCU on Arduino IDE

1. Open IDE
File>Preferances>AdditionalBoardManagerUrls>
Enter==>http://arduino.esp8266.com/stable/package_esp8266com_index.json
2. Tools>Boards>Board Manager>
select ESP2266 then update


Reference 1: https://ubuntu.com/tutorials/install-the-arduino-ide#2-installing-via-a-tarball
Reference 2: https://www.instructables.com/id/Quick-Start-to-Nodemcu-ESP8266-on-Arduino-IDE/
http://arduino.esp8266.com/stable/package_esp8266com_index.json

Sunday, March 29, 2020

Mussle Stimulater with AVR 32




  1. At the beginning its gives good output with 3 mS period frequency and 5~18 V output voltage range. This is need to be update while testing....! 





 This module were used to drive output in between 5~18 V range, this can operate maximum of  125 nS frequency, 

  2.  when current pass through skin 6 mA it can feel for above period(3 mS)

  3. This is 1st day test and will update with latest improvement soon

======================================================================
 
# include<avr/io.h>
# include<util/delay.h>
# define _BV(bit) (1<<bit)
# define setbit(port, bit)     (port) |= (1<<(bit))
# define clearbit(port, bit) (port) &= ~(1<<(bit))
# define togglebit(port,bit) (port) ^= (1<<(bit))

int main(void){
        DDRC = 0xFF;   // DataDirectionRegister for portc set as output
       
//===================end less loop=================       
       
    while(1){
    setbit(PORTC,PC0);  // set portc.0 HIGH
    _delay_us(1500);     // set ON delay
    clearbit(PORTC,PC0);// set portc.0 LOW
    _delay_us(1500);    // set OFF delay

    }
//================================================   
    return 0;
   
        }



Electronic Muscle Stimulaters

Search This Blog