electroSome » All Posts https://electrosome.com/forums/feed/ Sat, 18 Mar 2023 03:54:02 +0000 https://bbpress.org/?v=2.6.9 en-US https://electrosome.com/topic/adc-not-working-on-hardware-but-works-on-proteus/#post-15909 <![CDATA[Reply To: adc not working on hardware but works on proteus]]> https://electrosome.com/topic/adc-not-working-on-hardware-but-works-on-proteus/#post-15909 Mon, 17 Jun 2019 10:53:32 +0000 Omeken I mean changing RD1_bit = 0; to TRISD = ;

 

]]>
https://electrosome.com/topic/adc-not-working-on-hardware-but-works-on-proteus/#post-15908 <![CDATA[Reply To: adc not working on hardware but works on proteus]]> https://electrosome.com/topic/adc-not-working-on-hardware-but-works-on-proteus/#post-15908 Mon, 17 Jun 2019 10:51:15 +0000 Omeken I have rectified the problem, the design is now working . I changed to
RD0_bit = 0;
RD1_bit =0 ; to TRISD = 0;

  • This reply was modified 2 years, 11 months ago by Ligo George.
]]>
https://electrosome.com/topic/i2c-communication/#post-15905 <![CDATA[I2C communication]]> https://electrosome.com/topic/i2c-communication/#post-15905 Sun, 16 Jun 2019 03:20:39 +0000 OscarEduard I2C communication, with one master and two slaves, and the visualization of the data must be done in the master data of the two slaves in a GLCD and in the slaves the cross data in a LCD must be visualized, the data is generated from a potentiometer connected to an analog port.
I need help to carry out this project please attach the schematic file

  • This topic was modified 3 years, 9 months ago by OscarEduard.
]]>
https://electrosome.com/topic/adc-not-working-on-hardware-but-works-on-proteus/#post-15900 <![CDATA[Reply To: adc not working on hardware but works on proteus]]> https://electrosome.com/topic/adc-not-working-on-hardware-but-works-on-proteus/#post-15900 Thu, 13 Jun 2019 08:29:42 +0000 Omeken I am with LM35, LCD 16*2, and 16F877A. I want to use different value (read temperature and reference temperature) of the temperature to on or off the two LED. The code is only controlling one LED RD0.

// LCD module connections
sbit LCD_RS at RB0_bit;
sbit LCD_EN at RB1_bit;
sbit LCD_D4 at RB2_bit;
sbit LCD_D5 at RB3_bit;
sbit LCD_D6 at RB4_bit;
sbit LCD_D7 at RB5_bit;

sbit LCD_RS_Direction at TRISB0_bit;
sbit LCD_EN_Direction at TRISB1_bit;
sbit LCD_D4_Direction at TRISB2_bit;
sbit LCD_D5_Direction at TRISB3_bit;
sbit LCD_D6_Direction at TRISB4_bit;
sbit LCD_D7_Direction at TRISB5_bit;
// End LCD module connections

unsigned int read_value=0, ref_value;
unsigned int value=0;
unsigned int temp;
char aux[7];

void main()
{
  RD0_bit = 0;
  RD1_bit =0;
  ADCON1 = 0x00; // All channels are config as analog I/p.

  ADC_Init();
  Lcd_Init(); // Initialize LCD
  Lcd_cmd(_lcd_clear);
  Lcd_Cmd(_LCD_CURSOR_OFF); // Cursor off
  Lcd_out(1,3,"Temperature:");
  LCD_Out(2,1,"Eff:    Ref:");

  while(1)
  {
    read_value = Adc_Get_Sample(2)>>2;
    ref_value  = ADC_Get_Sample(4)>>2;

    if (read_value < ref_value)
    {
      PORTD.RD0 = 1;
      if (read_value > ref_value)
        PORTD.RD1 = 1;
      else
        PORTD.RD1 =  0;
      PORTD.RD0 = 0;
    }

    value = (unsigned int) read_value * (500./255); // Resolution for 5 volts, 8 bits
    ByteToStr(value,Ltrim(aux));
    LCD_Out(2,5, aux); //shows reading temperature

    value = (unsigned int) ref_value * (500./255);
    ByteToStr(value,Ltrim(aux));
    LCD_Out(2,13, aux); //shows reference temperature

    delay_ms(50);
  }
}
]]>
https://electrosome.com/topic/simulator-for-the-tutorials/#post-15896 <![CDATA[Simulator for the tutorials]]> https://electrosome.com/topic/simulator-for-the-tutorials/#post-15896 Wed, 15 May 2019 03:24:22 +0000 reyfrancis Hi guys. I’m new here. I came from Arduino and been wanting to step up my knowledge in embedded world. I just want to ask if there is a simulator so that I can try the connections and code without having to own a read AVR development board.

 

Regards,

rey francis

]]>
https://electrosome.com/topic/heat-protection-for-lm7805/#post-15894 <![CDATA[Reply To: heat protection for LM7805]]> https://electrosome.com/topic/heat-protection-for-lm7805/#post-15894 Sat, 04 May 2019 09:33:43 +0000 HarleyDavid great

]]>
https://electrosome.com/topic/why-jk-flip-flop-is-named-so/#post-15892 <![CDATA[Reply To: Why JK Flip Flop is named so ?]]> https://electrosome.com/topic/why-jk-flip-flop-is-named-so/#post-15892 Sat, 06 Apr 2019 13:24:55 +0000 oliverjack Take it to get back.

]]>
https://electrosome.com/topic/adc-not-working-on-hardware-but-works-on-proteus/#post-15891 <![CDATA[Reply To: adc not working on hardware but works on proteus]]> https://electrosome.com/topic/adc-not-working-on-hardware-but-works-on-proteus/#post-15891 Fri, 29 Mar 2019 08:53:22 +0000 Linda11 Thank the hardware is working. I had to modify the codes.

]]>
https://electrosome.com/topic/adc-not-working-on-hardware-but-works-on-proteus/#post-15888 <![CDATA[Reply To: adc not working on hardware but works on proteus]]> https://electrosome.com/topic/adc-not-working-on-hardware-but-works-on-proteus/#post-15888 Mon, 18 Feb 2019 17:33:40 +0000 BaseMell Hi..in my case I found that the microcontroller is powered by +5V. I had to change the Power Rail Voltage to +3.3V.
I changed the voltage from the “Design->Configure Power rails” menu entry. From the drop down list, I picked VCC/VDD and changed the voltage from 5 to 3.3. Now it works correctly.

]]>
https://electrosome.com/topic/pic-external-eeprom-communication/#post-15887 <![CDATA[Reply To: PIC & external EEPROM Communication]]> https://electrosome.com/topic/pic-external-eeprom-communication/#post-15887 Sun, 10 Feb 2019 10:41:16 +0000 Estefania Thank you, Ligo George!

That link clarifies my doubt. Now I have to work hard in the programming code with XC8.

Great web, you are helping me a lot in my beginnings. Good job, team!

 

]]>