Search results

  1. M

    Teensy3.5 SD Card File creation timestamp error

    Instead of posting patches of the code let me post the whole code. Right now besides the date/time stamp issue, the one other thing is there is no start / stop for the Logging process. I plan to bring in Push Buttons or a simple Touch Screen to do this. Till that time the open file in SD card...
  2. M

    Teensy3.5 SD Card File creation timestamp error

    This code grabs 8 channel analog value and writes to SD Card. All well but when i open the SD card in WIN10 laptop I see the file creation time as a fixed date time. ( see the image below ) But inside the log file each record has the correct time stamp. Any idea why the files have a uniform...
  3. M

    Teensy3.5 RTC- Some basic doubt !

    Good to be linked back to my own post ! Well in the linked post, Paul does explain about the process of setting the RTC during compile time and to be honest it was too much of Geek stuff on what happens behind screens. It helped solve the problem that I had then. But now my query was how does...
  4. M

    Teensy3.5 RTC- Some basic doubt !

    I am using the code below to set the RTC on my Teensy 3.5 and also using a 3V cell to maintain time. All well. But I just wanted to clarify two points : 1. It receives the T variable from the PC. How does that happen as I never installed Processing in it. Or is it native to Win10 PC ? 2...
  5. M

    The right library for SD Card with Teensy3.5

    Thanks. Possibly that's all i need for now. Just out of curiosity - how exactly does one use the SDfat library with T3.5 ?
  6. M

    The right library for SD Card with Teensy3.5

    After struggling with wrongly pointed AVR libraries I finally decided to create a Portable Arduino installation for Teensyduino. All well till now. Then I went and downloaded the SDFat library from here : https://github.com/greiman/SdFat But when I try the examples there I get the error "...
  7. M

    Teensy 3.5 Analog Read - Some queries

    I am learning to use the ADC library and going through the analogRead.ino example. 1. This code uses a conversion based on demand by this line : value = adc->adc0->analogRead(readPin); So is this the Averaged out value as set by the number of samples in setAveraging() function ? 2. value =...
  8. M

    In urgent need of datalogger help

    Oh so there really exists a method to handle this mess up with the libraries between Arduino and Teensy ! Could you please outline how this dual installation is done ? Thanks
  9. M

    Teensyduino alternate ?

    Yes good you brought it up... HW debugger is also on thier mind. Customers never want to make it easy for you right ?? :) But what about the license part ? Can a project developed in Arduino IDE used commercially - I think there are lots of aspects to consider inclduing the libraries that were...
  10. M

    Teensyduino alternate ?

    I am a big fan of Teensyduino and personally for the kind of applications i do, its far more complete and i dont think i even use 50% of its capabilities. But recently there was a discussion which came about and one of the participants was dead against the use of Arduino IDE saying its not...
  11. M

    Teensyduino Library complications

    C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SD\SD.h C:\Users\***\Documents\Arduino\libraries\SD\SD.h C:\Users\***\Documents\Arduino\hardware\espressif\esp32\libraries\SD\src\SD.h C:\Program Files (x86)\Arduino\libraries\SD\src\SD.h...
  12. M

    Teensyduino Library complications

    Yes ...i was careful to name my file as TEMPLOG.CSV.
  13. M

    Teensyduino Library complications

    Maybe this is a common topic ... I have an Arduino IDE 1.8.7 and the latest Teensyduino 1.44 on a WIN 10 machine. The target hardware is a Teensy3.5 module. I developed a code for a single channel data logger which also interacts with a LabVIEW utility on the PC to set parameters like logging...
  14. M

    T3.5 LCD and RTC on I2C - lock up

    The one you ordered is perfect. So please don't buy any more LCDs. The end result is the same whether its a 4 L x 20C or 2L x 16C module. I have tried both. ( After I sent you the EBay link for the 4Lx20C one, I simply wanted to check the behaviour with the 2Lx16C one, which I had available on...
  15. M

    T3.5 LCD and RTC on I2C - lock up

    Tried the following : - Reduce the speed all the way down to 24MHz -Bring in delay in start up immediately after Serial.begin(9600); -Shift the LCD init ahead of RTC init. -Bring in delay between the LCD and RTC init. And yet the issue remains... after each of above change you try powering up...
  16. M

    T3.5 LCD and RTC on I2C - lock up

    - Yes. Even without the RTC plugged in, the code freezes on hardware Reset. - Yes. The one on the board is NOT the Reset button. Its for Program download. - Bogus time. Yes again because the RTC is lying on the table unconnected.
  17. M

    T3.5 LCD and RTC on I2C - lock up

    Sorry about that. But OK... it also goes to confirm that the problem is across the spectrum of 2 Line or 4 line LCDs. And since all of them use the HD44870 chipset, the code that I sent will work as is - except that the last 4 columns , and two bottom rows will be blank. And since we are...
  18. M

    T3.5 LCD and RTC on I2C - lock up

    Thanks Paul for your consistent follow up. Since I did not have a 4 line LCD , just modified the code for a 2 line LCD and is given below. The problem as I notice : When both the LCD and RTC are plugged in , A. applying power 10 times , results in the program starting up 4-5 times . Rest of...
  19. M

    T3.5 LCD and RTC on I2C - lock up

    Hi Paul..... I am so sorry. Should have checked before posting. My bad. This is a small segment of the original code . Anyway now the one below compiles OK for T3.5. // The LCD is a 4L x 20Char type with a I2C backpack. // Both the LCD and the RTC are connected to the SCL0 and SDA0 lines of...
  20. M

    T3.5 LCD and RTC on I2C - lock up

    Yes and Yes !!
  21. M

    T3.5 LCD and RTC on I2C - lock up

    The LCD with IIC Interface here : https://www.ebay.in/itm/Serial-2004-20-X-4-IIC-I2C-TWI-Blue-Backlight-LCD-Module/172695686775?hash=item2835770e77:g:SOMAAOSw3utY6JDi The RTC Module like here ...
  22. M

    Teensy3Time.ino updates wrong time ...

    @PaulStoffregen That was patient but useful info on how the RTC updates. I am basically a LabVIEW developer and one of the big issues that we have is to handle the First-Run-After-Installation situation. Once the code has run and properly shutdown, there are lots of configuration data that get...
  23. M

    Teensy3Time.ino updates wrong time ...

    Ok this has been an interesting thread. Thanks folks ... so time to "show off "my all in PCB using the T3.5 !! Its right now showing the clock that was set about a week back. Going good. The PCB has headers for : HM10 BT Module / Level shifted I2C headers for LCD and RTC ( this is now spare) /...
  24. M

    Teensy3Time.ino updates wrong time ...

    Got it . Thanks. So sat down and coded a simple blink that also can show the time in Serial. Though I made it work, I still don't follow how the function time_t getTeensy3Time() works without being explicitly called. Maybe once started it runs in the background... I am giving the code that I...
  25. M

    Teensy3Time.ino updates wrong time ...

    My Teensy3.5 seems to love the time 21.05.00 ... I first ran the code around that time yesterday and then disconnected. No battery back up is there for the Teensy3.5. But today I ran the same code around noon to update the time and it seems to be stuck on the time around 21.05 hours. I have two...
  26. M

    T3.5 LCD and RTC on I2C - lock up

    Oh...ok got it. Will implement and check if it resolves the lock up after Reset. Thanks.
  27. M

    T3.5 LCD and RTC on I2C - lock up

    >> As nox771 says, many devices need a longer timeout on Teensy, due to the faster processor speed. Not sure how to do this ... do I introduce delay like 5ms after every Read or Write function to the IIC bus ??
  28. M

    T3.5 LCD and RTC on I2C - lock up

    1. The RTC module is a 5V type DS3231 with the Coin cell on its back. The module itself is functional as I just pulled it out of the Mega 2560 setup. It alongwith the LCD interface with the Teensy IIC via a active regular Level translator ( not the resistor type ) 2. The module is wired to...
  29. M

    T3.5 LCD and RTC on I2C - lock up

    Well the two resistors ( 5K Ohm) between SCL and SDA to 3.3V initially looked like they helped but then after I tried to Reset a few times the screen froze. Only removing the RTC module makes a reboot reliable any number of times. Right now the RTC section INIT is after the LCD INIT. So I...
  30. M

    T3.5 LCD and RTC on I2C - lock up

    Thanks for the responses. Just after I posted I read the warning about the pull ups... that could be the problem. Let me try it and post back. So the new PCB needs a surgery ...sigh!! I did try shifting the RTC init code AFTER the LCD Init. Did not help - at times it fires up and most times...
  31. M

    T3.5 LCD and RTC on I2C - lock up

    The code below locks up when the RTC module is plugged in ...but boots with no issues and displays the Home Screen when the RTC is pulled out. But then then there is no valid time display. But if after booting i insert the RTC module the code runs fine and time is valid.. so what i am doing...
  32. M

    Very Basic Teensy3.5 query

    Ok got it. Its working now. Just to understand this whole interaction, created a simple Blink as below. The only thing I notice which is different from the UNO behaviour is that the initial " while(!Serial){} ; is blocking ( as it should) after every Reset. Once I Reset the Arduino Serial...
  33. M

    Very Basic Teensy3.5 query

    OK got it... but a bit surprised to note that the Reset is active low. If then it should have been RESET with a bar on top of it ?? Or atleast /Reset ?
  34. M

    Very Basic Teensy3.5 query

    Nothing complicated about the code.. as I mentioned it is a simple Write and Read from SD card. Works fine on UNO. As to the TyCommander I am just downloading the Win64 version 0.8.8 . Let me check it out. Thanks
  35. M

    Very Basic Teensy3.5 query

    First I tried the normal Serial. After the program download when I invoked the Arduino serial monitor, it printed once. But that's it. I was trying to ReBoot which I could not ( the button was disabled ) Then I tried the Serial1 option and Reset method. No luck. I think (?) The behaviour of...
  36. M

    Very Basic Teensy3.5 query

    This is my code to Read/Write to a SD Card. OK not mine but adapted from the Example !! I have used Serial1. What I expect : 1. The T3.5 is powered via the USB port. 2. The Serial1 is connected to a Terminal on the same PC via another USB port. 3. I RESET the T3.5 by connecting the Reset pin...
  37. M

    nRF24L01 with Teensy 3.5

    Thanks Paul. The exact point I wanted to know. With all this confirmations I today tried out the RF24 module with Teensy3.5 and it worked first shot !! I now am planning to move a big project from Mega2560 to the Teensy.3.5 It uses the following peripherals : SD Card module via SPI RTC 1332...
  38. M

    nRF24L01 with Teensy 3.5

    That was a good point on the LCD. Thanks !!
  39. M

    Teensy 3.5 with Adafruit Fether adaptor

    Perfect that is the kind of tips i was looking for. Thanks !!
  40. M

    Teensy 3.5 with Adafruit Fether adaptor

    Planning to use the Teensy3.5 with the Adafruit feather adapter. As i can see a Teensy 3.2 will fit exactly and a Teensy 3.5 will kind of over hang with pins 24 onwards hanging. Is my understanding correct ? Any things to watch in the setup ? Thanks
  41. M

    nRF24L01 with Teensy 3.5

    Are you asking why there are multiple pins marked as CS0 in the hardware card for the Teensy 3.5? All of the above pins are Chip select pins for the SPI buss 0. The teensy 3.5 has 3 SPI busses, so the ones marked CS1 are for buss #1... Thanks ... that's what I want to know. SO my configuration...
  42. M

    nRF24L01 with Teensy 3.5

    Just a quick check ... I am planning to use the Rf24 module with Teensy3.5 and following are the pin assignments : 09 : CE of RF24L01 10 : CSN of RF24L01 11 : MOSI of RF24L01 12 : MISO of RF24L01 13 : SCK of RF24L01 I am sure about all of them except Pin9 which is marjed as...
  43. M

    How to update Teensyduino...

    Yes ... you read my thoughts well. So even though we are using an ARM processor in the Teensy hardware, it is meant to be used ONLY with the Teensyduino for quick and rapid prototyping. Need to use the ARM processor to its full might and speed and also be able to hardware debug ? - go the pro...
  44. M

    How to update Teensyduino...

    Great... exact information as I was looking for. And the MKL02 link was very useful to understand the Bootloading process and also some key aspects to watch when designing own PCBs. Since I have wandered into this Teensy world recently, doubts keep cropping up ... With so much power on hand is...
  45. M

    How to update Teensyduino...

    I started with the Teensy3.2 and then moved on to the Teensy3.5. Well i still cannot believe that these pack so much of computing power and the program downloads are so fast. I guess i will permanently stick around these 32 bit guys instead of the 8 bit Arduino offerings.. I am impressed. And...
  46. M

    TimeTeensy3 - Serial functions..

    You get nothing when the search is wrong !! Well don't laugh... I was searching for Serial.cpp and Serial.h and no wonder I never bothered to look the Stream stuff :(. Thanks for pointing out the mistake.
  47. M

    TimeTeensy3 - Serial functions..

    Came across two Serial functions in the TeensyTime3 example. I was happy to see it pick up the PC time ... so easy to set the RTC. I do hope that the RTC is updated with this and if I have a battery back up on my Teensy3.5, i have a clock running ?? if (Serial.find(TIME_HEADER)) {...
  48. M

    Teensy3.2 and 20Cx4L LCD with I2C backpack

    I was working on another code for the Teensy3.2 where I had to use the EEPROM library. As usual the compiler complained about finding more than one. I tried an #include as below and it works : #include "C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\EEPROM\EEPROM.h" Is the...
  49. M

    Teensy3.2 and 20Cx4L LCD with I2C backpack

    OK ... I renamed the offending Wire library and allowed the Teensy to choose its own Wire library and the problem is solved. Thanks. Just one more thing ... still I'm unable to use the LiquidCrystal library alonwgwith the more recent wire library i2c_t3.h . The Liquid Crystal library that I...
  50. M

    Teensy3.2 and 20Cx4L LCD with I2C backpack

    Thanks... will do when I get back to the system and revert. In the meanwhile to avoid the compiler trying to use all and sundry libraries, can I create a "libraries" folder inside my sketch folder and put in only the relevant header files / cpp files in a structure as exists in the native...
Back
Top