Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Tetnobic
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Tetnobic

    @Tetnobic

    4
    Reputation
    19
    Posts
    463
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online
    Location Marseille, FRANCE

    Tetnobic Follow

    Best posts made by Tetnobic

    • RE: Best way to store large data in eeprom

      @hek right 🙂 sizeof uint32_t : 4

      it works with :

      #define EEPROM_SLEEP_DURATION_ADDRESS 0
      
      uint32_t sleepDurationInS = 86399;
      
      hwWriteConfigBlock((void*)&sleepDurationInS, (void*)(EEPROM_LOCAL_CONFIG_ADDRESS+EEPROM_SLEEP_DURATION_ADDRESS), 4);
      
       hwReadConfigBlock((void*)&sleepDurationInS, (void*)(EEPROM_LOCAL_CONFIG_ADDRESS+EEPROM_SLEEP_DURATION_ADDRESS), 4);
      
      posted in Development
      Tetnobic
      Tetnobic
    • RE: MYSBootloader 1.3pre2 testing

      @tekka Hi, I found my mistake ! You were absolutely right when you said there is no sign of MYSBootloader in my GW log...
      But now I know why 🙂 :
      I use an USBasp Programmer with Arduino IDE for upload my bootloader and my sketch..., and I mistakenly thought that when I upload bootloader then sketch, it keep bootloader.....but NOT, it overwrite bootloader 😞
      I fix it by uploading the xxx.with_bootloader.hex file generated by Arduino IDE when compile.

      Sorry for the inconvenience and thank you for your help

      posted in Development
      Tetnobic
      Tetnobic

    Latest posts made by Tetnobic

    • RE: NRF24L01+PA+LNA with Raspberry PI 3

      @esawyja Perhaps you should be inspired by this :
      https://www.openhardware.io/view/17/Raspberry-Pi2-GPIO-interface-for-NRF24L01

      posted in Hardware
      Tetnobic
      Tetnobic
    • RE: Office plant monitoring

      Hi,
      in last MySensors lib version 2.1.0, I see a new sensor type : S_MOISTURE
      It's more logicial to use this new type instead of S_HUM ?

      and so use V_LEVEL instead of V_HUM ?

      Thanks for respons

      posted in My Project
      Tetnobic
      Tetnobic
    • RE: MYSBootloader 1.3.0-beta.3

      @tekka Hi Happy new year 2017 !!!
      Many thanks for release source of MYSBootloader!!! A very good news !!!
      Can you explain how to compile ?
      Makefile in Master Branch failed with :

      make: *** No rule to make target 'MYSBootloader.c', needed by 'MYSBootloader.o'.
      

      I would like to compile an ATMega328 1Mhz version
      Thanks

      posted in Development
      Tetnobic
      Tetnobic
    • RE: CDS - Cat Defense System (Arduino + Servo + Motion Sensor)

      @MaKin
      I have not done this build, but if I had to do it I will try with this
      The most complicated is to find the Raid Power Sprayer 🙂

      posted in My Project
      Tetnobic
      Tetnobic
    • RE: CDS - Cat Defense System (Arduino + Servo + Motion Sensor)

      Like this: http://lifehacker.com/this-auto-trigger-spray-bottle-pranks-friends-keeps-ca-1555621712

      posted in My Project
      Tetnobic
      Tetnobic
    • RE: WS2811 RGB strip lights up in groups of three

      @mfalkvidd So where you buy the right led strip ?
      Thanks for your reponse

      posted in Hardware
      Tetnobic
      Tetnobic
    • RE: Best way to store large data in eeprom

      Just for info, I found others methods to save data in eeprom :
      in <avr/eeprom.h> there is :

      uint8_t 	eeprom_read_byte (const uint8_t *__p)
      uint16_t 	eeprom_read_word (const uint16_t *__p)
      uint32_t 	eeprom_read_dword (const uint32_t *__p)
      float 	eeprom_read_float (const float *__p)
      void 	eeprom_read_block (void *__dst, const void *__src, size_t __n)
      void 	eeprom_write_byte (uint8_t *__p, uint8_t __value)
      void 	eeprom_write_word (uint16_t *__p, uint16_t __value)
      void 	eeprom_write_dword (uint32_t *__p, uint32_t __value)
      void 	eeprom_write_float (float *__p, float __value)
      void 	eeprom_write_block (const void *__src, void *__dst, size_t __n)
      void 	eeprom_update_byte (uint8_t *__p, uint8_t __value)
      void 	eeprom_update_word (uint16_t *__p, uint16_t __value)
      void 	eeprom_update_dword (uint32_t *__p, uint32_t __value)
      void 	eeprom_update_float (float *__p, float __value)
      void 	eeprom_update_block (const void *__src, void *__dst, size_t __n)
      

      It is to these methods that the aliases are made in the file MyHwATMega328.h 🙂

      #define hwReadConfig(__pos) eeprom_read_byte((uint8_t*)(__pos))
      #define hwWriteConfig(__pos, __val) eeprom_update_byte((uint8_t*)(__pos), (__val))
      #define hwReadConfigBlock(__buf, __pos, __length) eeprom_read_block((void*)(__buf), (void*)(__pos), (__length))
      #define hwWriteConfigBlock(__buf, __pos, __length) eeprom_update_block((void*)(__buf), (void*)(__pos), (__length))
      
      posted in Development
      Tetnobic
      Tetnobic
    • RE: Best way to store large data in eeprom

      @hek right 🙂 sizeof uint32_t : 4

      it works with :

      #define EEPROM_SLEEP_DURATION_ADDRESS 0
      
      uint32_t sleepDurationInS = 86399;
      
      hwWriteConfigBlock((void*)&sleepDurationInS, (void*)(EEPROM_LOCAL_CONFIG_ADDRESS+EEPROM_SLEEP_DURATION_ADDRESS), 4);
      
       hwReadConfigBlock((void*)&sleepDurationInS, (void*)(EEPROM_LOCAL_CONFIG_ADDRESS+EEPROM_SLEEP_DURATION_ADDRESS), 4);
      
      posted in Development
      Tetnobic
      Tetnobic
    • RE: Best way to store large data in eeprom

      I try this :

      #define EEPROM_SLEEP_DURATION_ADDRESS 0
      
      uint32_t sleepDurationInS = 86399;
      
      hwWriteConfigBlock((void*)sleepDurationInS, (void*)(EEPROM_LOCAL_CONFIG_ADDRESS+EEPROM_SLEEP_DURATION_ADDRESS), 32);
      
       hwReadConfigBlock((void*)&sleepDurationInS, (void*)(EEPROM_LOCAL_CONFIG_ADDRESS+EEPROM_SLEEP_DURATION_ADDRESS), 32);
      

      but seems no work 😞 my node freeze at this method

      posted in Development
      Tetnobic
      Tetnobic
    • RE: Best way to store large data in eeprom

      @mfalkvidd yes for this solution, I guess that hwWriteConfigBlock method access to the eeprom in one time, contrary to bit shifting technique that need 4 saveState so 4 access to the eeprom ?

      posted in Development
      Tetnobic
      Tetnobic