Tikfollowers

Arduino cloud variables. Now the board variable is false.

When the board and dashboard scheduler widget are both true, disconnect power to the board, reconnect board power. 5-Navigate to the Sketch tab and add the code for MKR Wi-Fi 1010 and upload the code. Examples The Arduino Cloud is a platform for developing Arduino projects and connecting them to the world. When I power up the Arduino, it seems to execute those on change functions before the OnIoTSync() function is executed. policy - ON_CHANGE (whenever variable data changes) or <seconds> * SECONDS. Creating a Thing. Dashboards are not linked to one specific Thing or device, you can control all of them through one single dashboard. Whenever a variable is updated, so is the <style>. Programming a ESP32 I need to sync my variables before putting it to a timed deep sleep. I don't want that. However unable to effectively sync boolean state the same way. In other words, it runs those functions with the old variables that existed before the Arduino powered down. permission - can either be READ / WRITE or READWRITE. ianlilburne November 3, 2022, 7:14am 1. Cloud Triggers. You can pick a start & end date for when the variable should be triggered, and for how long it should be active. Unlimited storage for sketches. Cloud Variables. In the Thing overview, we can choose what device to use, what Wi-Fi network we Jan 12, 2020 · In the Arduino Web Editor, click on "Libraries" from the menu on the left side of the screen. $ 1. The graph displays in the dashboard continue May 30, 2023 · ArduinoCloud. That's great, thanks!! You are welcome. gatsby-image-wrapper noscript [data-main-image]{opacity:1!important}. The variable ist an int with readwrite permission / update on change. I have added the variable to the dashboard, as slider (and also tried the value selector). Share this: May 4, 2022 · kittery May 4, 2022, 1:34pm 1. The user journey always begins by creating a new Thing. 88 billed yearly. After it runs, the cloud variables are updated to the new values via OnIoTSync(). The most common use of secrets in Arduino IoT Cloud Thing sketches is network credentials. We are the owners of Jun 1, 2023 · I've been working on a smart greenhouse project that uses the Arduino IoT Cloud and the ESP32 microcontroller, that tracks data such as soil moisture (using a capactive soil moisture sensor), or temperature and humidity (using a DHT11 sensor). I think that there is a bug with the Arduino IOT Cloud Scheduler widget not syncing after board restart. ino file is this: float averageTurbidityVoltage = readAverageVoltage (TurbiditySensorPin); This declares a new variable and sets the value of Jul 5, 2020 · I have 1 more piece of information. related to the state of network and IoT Cloud connection and errors. Value updated in the Arduino Cloud. Once connected, we push the variable update for test_value. 2. Jul 1, 2021 · Putting Historical Data to Use in Arduino Cloud. A Servo motor (optional). Dashboard sharing. The agent will then connect to both the device and the IoT Cloud, and with any luck it will detect the type of device you have. 10 Things. Triggering Schedule Variables. The default is 0 (only errors). When starting, dashboard fires an "on change" event. Create a Thing with the following variables: Apr 11, 2024 · I'm using an Arduino R4 Wi-Fi with a DS18B20 temperature sensor. Hi, bit of an odd one. It appears that the variables are polled/reported to the cloud at different frequencies. To start this process, you will need to download the Arduino IoT Remote app from either the Google Play Store or the Apple App store depending on your device, if you don't already have it installed. Jan 5, 2024 · - update a variable in the Cloud, onPropertyValue (cloudVar, (value)) - when receiving an update from the Arduino Cloud, updates the value variable. Connect devices, visualize data, and control your projects from anywhere in the world. This tutorial assumes you know the basics of the Arduino Cloud. Creating a thing. 15 days data retention. callBackFunction - by default, a callback function is added to a variable with WRITE permissions. I finally started with my first serious project. The Arduino Cloud is a online platform that makes it easy for you to create, deploy and monitor IoT projects. rookiepresent March 6, 2022, 6:45pm 1. $71. Select the downloaded ArduinoCloudThing-master. 3-Attach the device to Thing. The better approach for that would be to use arrays with sufficient space for the expected maximum number of users or linked lists. Wi-Fi connection credentials, and any variables you want to control or monitor. Choose the appropriate variable type for the intended action. For example, you can specify how often new data is sent to your Arduino Cloud. I'm glad if I was able to be of assistance. Two wires placed in the soil pot form a variable resistor, whose resistance varies depending on soil moisture. begin(ArduinoIoTPreferredConnection); /*. You should remove this line, and just keep the next: Mar 27, 2024 · Software IoT Cloud. There’s no better demonstration of that than our first top Arduino Cloud feature; auto-generated sketches. Maximum is 4. In the 2nd project added 2 variables of the same kind (an int and a The Arduino Cloud is a online platform that makes it easy for you to create, deploy and monitor IoT projects. cloudVariable - name of the variable/property. js. Jan 19, 2020 · float t = dht. Part 1: Arduino Cloud The Arduino Cloud is a online platform that makes it easy for you to create, deploy and monitor IoT projects. Mar 16, 2023 · ArduinoCloud. Oct 22, 2021 · Using Arduino Programming Questions. When you create a new “Thing” in your Arduino Cloud, you add various bits of info to it. I created a read-and-write cloud variable name "led" (which for some reason does not appear in the cloud variables section). In the Thing overview, we can choose what device to use, what Wi-Fi May 22, 2024 · So after a wile playing and a few basic tutorials. Create a simple testing program for the end device. Click the upward pointing arrow button ("Import"). float batteryvoltage; float systemvoltage; Variables which are marked as READ/WRITE in the Cloud Thing will also have functions. In this article, we will cover: How to sync variables between your board and the Arduino Cloud. I have connected an 100K potentiometer between GND and 3,3V and the pin in the middle of the pot to GPIO 13. Click the " ADD " button to add a Cloud Variable to the Thing. Arduino Cloud has an equivalent secrets storage system that is even more secure. The following variables are automatically generated and updated when changes are made to the Thing. Scope of project: at the end, I like all variables of our home like energy usage, energy production, temperatures in house and temperatures of our heating pump in a dashboard. Subsequently, the user programmable LED will be controlled via Arduino Cloud dashboard. Dashboards & Widgets. Dashboards are composed of widgets, which are directly linked to a variable. A dialog box will display, asking what type of microcontroller you are using. arduino. Phone Setup. Dashboards in the Arduino Cloud are used to easily monitor & control your Arduino boards from a web interface. the higher number the more granular information you’ll get. Click the Get Data button. In the Thing overview, we can choose what device to use, what Wi-Fi network we <iframe src="https://www. A function named onLedChange() has been automatically created and should theoretically be called whenever the "led" variable is updated (in my case, using a switch on a Aug 28, 2022 · In IoT cloud, there is a Chart widget for the dashboard, but it appears to only allow selection of variables of type int or float. Jul 10, 2024 · Access the Arduino Cloud from any page on arduino. In this document you will find: List of supported devices. " This is the code I'm using: {. brebey March 27, 2024, 7:42pm 1. I have a dashboard full of slides and steppers and some buttons. Oct 23, 2023 · Cloud variables provide the communication links between your Thing and the Arduino Cloud service. readTemperature(); You are updating those variables, but they are not connected to your Arduino IoT Cloud dashboard, so you don't see anything happening there, because the global variables stay at their initial values of 0. Hello everyone, I am struggling with IoT cloud and its variables. Dec 18, 2020 · It is a serious mistake to use "float" for these variables, although the code might conceivably work. ArduinoCloudStorage. Opening the Arduino Cloud. Unlimited dashboards. View data from the device in the Arduino Cloud. The variables exist, and they show up in my sketch configuration as expected, and newly-added ones get added to the sketch as expected, and they are all available to be linked to Dashboard 1 year data retention. 88. 23; What you are doing instead in the . Author: Gil Maimon. I am using dimmer light control on my dashboard. Circuit. After a few days of this the delay is approaching 5 hours. I just updated my IOT Create Plan from FREE to MAKER because the latter offered 10 Cloud API requests per second (10/sec) whereas the free plan is limited to 1/sec. $ 239. The Cloud Scheduler is a new type of variable. If you want to customize your project, you can use Cloud Editor to modify the code and make it your own. If you create a variable called test, the function will render as void onTestChange {} Similarly, if a board receives an update from the Cloud, the variable also updates on your board. h file, also generated based on what you input in the Arduino IoT Cloud Arduino Cloud. May 7, 2024 · Go to app. You can test out the test_switch variable by creating a It enables you to pair variables of the same data type between things and with the Arduino Cloud, creating a two-way communication between your devices has never been easier. Create a Thing with the following variables: Feb 9, 2024 · SoftwareIoT Cloud. Arduino Cloud is really clever when it comes to the data generated by sensors and used as variables. If I now upload this code in the Iot Cloud and open the Serial Monitor it prints "0" the value of "pot", even when i connect 3,3 V to GPIO 13. May 23, 2023 · How can I ensure that my updated variables are pushed to the cloud before sleeping. cc by clicking on the bento menu (9-dots) on the top right corner, or you can go directly to the Arduino Cloud. ⓘ The example code I share below assumes the variable name you chose is color. But the issue is that my thing is continuously being shown "Offline", and the variable is also not updated The Arduino programming language Reference, organized into Functions, Variable and Constant, and Structure keywords. It can be used as an automation tool to: Clone existing Things & Dashboards (by extracting its template). You can ensure it is working by checking your Thing Jul 10, 2024 · Access the Arduino Cloud from any page on arduino. By now, I can receive values from the board and show them on the dashboard. Feb 4, 2024 · For example, if you wanted the sketch program to set the value of the averageTurbidityVoltage Cloud Variable to 1. cc by clicking on the four dots menu in the top right corner. The following variables are automatically generated and updated when changes are made to the Thing properties. Nov 3, 2022 · Software IoT Cloud. If I understand it correctly, you want to create a new variable; so you will end up with 10 or 100 or variables. If you are new check out our Getting Started Guide. Choose a device you want to connect, and Arduino Cloud will take care of all the code necessary for setting things up. h tab, as for example (I named the variable "coordinates"): CloudLocation coordinates; You need to chage the latitude and longitude values in the next form (inside your loop() code or whatever): double Lat; double Long; coordinates = {Lat, Long}; The Lat and Jan 2, 2021 · Arduino IoT Cloud Variables description. If you get a message about importing your sketchbook, click the "Import" button. The 2 Editors both Verify the sketch OK if a MKR WIFI 1010 is specified but not connected to a usb. A global variable is one that can be seen by every function in a program. It supports secure connections with boards via Wi-Fi®, LoRa®, Ethernet and Cellular (GSM/NB-IoT), and lets you create a system for sending any variable information you can think of from one board to another within minutes of unboxing them. It is the compilation of variables that the Arduino Cloud will send accordingly. May 22, 2023 · Hi. Create devices, things, variables & dashboards directly via the CLI. Johan_Ha January 9, 2022, 9:15am 1. Example: I have timer for auto light, so the sketch run light every morning in 6. <seconds> is specified in the Thing configuration. Using Advanced Cloud Variables. float up_buttonState = 0; //Current state of the up button. Variables. You can find the full list of available resources and actions in the Arduino Cloud Application API Technical Reference. The journey always begin by creating a new Thing. Arduino MKR ENV Shield. Success. SoftwareIoT Cloud. cc), but as an example to help understand it, Jun 18, 2021 · The cloud is how total beginners can get started much more easily. CloudStorage lets you store and retrive values from a remote server. cc/plans and scroll down to the Features table for a detailed comparison between the available plans. If a cloud variable is updated on your board (like reading a sensor), the service will also receive this value. Is there a way to use long variables in the IoT cloud? <style>. Visit cloud. googletagmanager. We are using an Arduino device, so we will select Arduino. 00. New Cloud Editor The 2 nd editor Verify Fails with a Nano 33 iot specified but not connected to a usb. Over the Air Updates. The " Add variable " dialog will open. Your sketch prints some information on startup about the connection process. The Arduino Cloud is a platform for developing Arduino projects and connecting them to the world. Dec 23, 2021 · Cloud Scheduler is a brand new feature that’s now live as part of your Arduino Cloud platform. It is now possible to schedule jobs with the Arduino Cloud, using the new CloudSchedule variable type. gatsby-image-wrapper [data-placeholder-image]{opacity:0!important}</style> <iframe src Similarly, if a board receives an update from the Cloud, the variable also updates on your board. I am able to read brightness and switch status with var. This page is also IoT Cloud API; 2 days ago · Variables in the C++ programming language, which Arduino uses, have a property called scope. I've been able to get the device connected to the Arduino IoT Cloud, and gotten the sensors working. A 1-year subscription to the Maker plan of the Arduino Cloud allows you to build, deploy, monitor and control connected devices based on a wide range of hardware such as Arduino, ESP32, ESP8266 boards and much more. If you do have it installed already Aug 1, 2021 · Click on the Add Device button. Dec 14, 2023 · CloudCounter total_Time_Elapsed = MaxTimer; // <== redeclaring variable Hi @amjhr, I think the problem can be the line above. Local variables are only visible to the function in which they are The 'Inputs' define variables that will capture the data that comes from the Arduino Cloud through the local Arduino sketch to Opta™ PLC main program runtime. The first thing to check is whether the board is connected to Arduino Cloud. Apr 21, 2021 · Need Help with Sending Values to Complex Variable Types in Arduino IoT Cloud Using Node. float buttonPushCounter = 0; //Counter for the number of button presses. gavvyboy February 9, 2024, 5:44pm 1. gatsby-image-wrapper [data-placeholder-image]{opacity:0!important}</style> <iframe src The Arduino Cloud CLI is a tool developed to access features of the Arduino Cloud service from the terminal. The problem is that I am using Node MCU(ESP 8266) and trying with an elementary test sketch set to update a variable's value; as you can see in the code, I uploaded the program to the device using Web Editor. I'm trying to control a motor through IoT, and was able to get the motor to work on its own, and the IoT from the IoT Remote app to work on its own, but not both of them together and I'm stumped. gatsby-image-wrapper [data-placeholder-image]{opacity:0!important}</style> <iframe src Arduino Cloud. 1: 44: June 30, 2024 Home ; Categories ; Guidelines ; Jan 29, 2024 · Click the Select Data Source button. cc; If you’re not signed into an Arduino account, you will be asked to do so. float temp_Sensor; int pH_Sensor; int tDS_Sensor; Variables which are marked as READ/WRITE in the Cloud Thing will also have functions. The download consists of a Zip archive, which includes these files: CSV (comma-separated values) files (one for each exported variable) A Dec 15, 2023 · sterretje December 18, 2023, 5:12am 4. Variable creation in Arduino Cloud Some Arduino boards support a connections to the Arduino Cloud via LoRaWAN® (The Things Stack). float soilMoistureContent; CloudTemperatureSensor temperature; CloudRelativeHumidity humidity; Properties which are marked as READ/WRITE in the Cloud Thing will also have functions. If you prefer a different variable name, you only . The goals of this project are: Learn how to set up the Thing to Thing communication. Now the board variable is false. They are synced using the MQTT protocol over a network connection. When I start my Arduino and it establishes contact with the cloud, the dashboard fires on change events for some of the gadgets. Okay so I made a simple code using arduino iot cloud, in my first thing I created 2 variables: 1st: "analog_value" its an analog int read&write 2nd: "boolean_sync" a boolea read&write In my code assigned a random number to "analog_value". An email will be sent to the email address associated with your Arduino account. Arduino MKR WiFi 1010. So, I edit the existing sync (the thing has variables that are already synced - and these are working fine) and when I try to do this I get a blank webpage. For example, to control a colored light such as the on-board RGB led on some Arduino boards, you can create a variable of type CloudColoredLight. We both have Maker Plans, so we can just use one account, but feel it would better if we didn’t. getSwitch (). Since the Raspberry Pi Thing was manually configured, we need to create the associated program from Setting up the Arduino Cloud. Add to Wishlist. My 'Thing' variables suddenly stopped appearing in the "Setup" tab on the Thing editor Web pages. Next, you can create a custom dashboard in the Arduino IoT cloud to display and update managed variables in your IoT projects. Perform mass OTA uploads. You are redeclaring the variable total_Time_Elapsed which, as a consequence, become a local variable, which actually override the value coming from the Cloud. Learn how to customize your Arduino Cloud dashboard with various widgets for a personalized experience. This variable resistor is connected in a voltage divider configuration, and Arduino - synchronizes all data between the board and the Arduino Cloud. which are called when their values are changed from the Dashboard. This example simply sends an update to the Arduino Cloud (updating the value of test_value to 20), and awaits any changes from the Cloud. I know that the sensor is working and is reading the correct temperature as I also have an I2C LCD screen on my project and the temperature readout is accurate. Feb 25, 2024 · Examining the stats of your cloud variables is an excellent troubleshooting tool; keep it in mind if one of your Arduino IoT Cloud projects doesn’t work as you expect it to. $ 19. I'm trying to use the Arduino IOT Cloud Dashboard to monitor some code I'm using from an example, but the variables being used are "long" which isn't an option to use with the IOT Cloud when building a "Thing. h file is something that is only used outside of Arduino Cloud. Jun 3, 2023 · Arduino IoT Cloud Variables description. Machine Learning Tools. 1. I'm not familiar with the cloud so have no idea how to do Aug 18, 2019 · Create a Thing as usual. com/ns. IoT Cloud. Now I have created a variable to send down to the board. I am trying to sync a variable between two things. Register an account on The Things Console. You choose. Although the two sets of variables have the same names, they are different. I've created an Arduino IoT Cloud project and I'm having problems with my cloud variable not updating or syncing to the cloud. This is in contrast to early versions of languages such as BASIC where every variable is a global variable. Code or no code. You can access the Arduino IoT Cloud from any page on arduino. The dashboard looks like this: Oct 9, 2022 · blclark October 9, 2022, 1:50pm 1. (2) SKU AVX00003 Show more. Go to the Arduino IoT Cloud. Configuring the Cloud. Aug 3, 2022 · Ok, if someone is looking how to use the Map Widget, after Arduino IoT Cloud create the CloudLocation variable in the thingProperties. Oct 23, 2023 · The arduino_secrets. Maintainer: Gil Maimon. For learning how to successfully authenticate and interface with this API, visit the Arduino Cloud REST API & SDK article. Remains true when its suppose to be and atleast half the time it is suppose to be false. I can also see that the IoT cloud is Feb 4, 2021 · I'm able to connect Nano 33 IOT to Arduino cloud and exchange 1 (R/W) Boolean and 1 (RW) Integer with dashboard. I have tried Chrome, Edge and Firebox browsers and still Arduino Cloud Maker Plan - 1 year. Yep, as suggested, I can create an additional variable in my sketch and convert boolean to int and chart that, but I guess I was wondering if there was already a chart option for booleans that I'd missed. Unlimited compilations. Sync a variable containing a value between two Things. It’s a powerful addition that adds a whole new dimension of automation and control to your projects. Click the Download link inside the email to download the data. 2-In this section we will add the cloud variables and in this tutorial we required 2 cloud variables one for temperature and second for humidity. DIY soil moisture. Is it possible to sync Arduino IoT Cloud variables between devices on separate accounts? I am trying to sync variables with a colleague across the ocean. For example, variable 1 may report 1 time per second and variable 2 may report 6 times per second. The following function allows you to obtain more information. Jun 28, 2023 · Hey !! I am very anxious to seek help as I am new to the IOT cloud of Arduino. What is the Arduino Cloud CLI? Jan 10, 2022 · A brief investigation revealed that the variable continues to be updated every 10 minutes, but the IoT cloud is showing older readings. I was expecting to be able to edit the variable update policy to Mar 27, 2024 · So I'm using an Arduino UNO R4 WiFi and I want to control an LED through a dashboard on the cloud. Quantity. We will start by adding four variables: Arduino IoT Bundle. But I need to update dashboard from sketch. Feb 11, 2024 · Old Editor The first editor Verify OK and I can also upload the sketch to a Nano 33 iot and it connects to the Arduino cloud OK. This type has a maximum value of 2147483647. I'll provide instructions you can follow to set or adjust the network credentials: The connection handler classes are not part of the Arduino IoT Cloud, but exists inside the Arduino_ConnectionHandler library (listed as a dependency). Type the name for the variable in the " Name " field of the " Add variable " dialog. Feb 27, 2023 · ArduinoCloud. Arduino_MKRENV library. May 11, 2024 · Currently sending temperatures from one esp32 thing via cloud variable syncing to cloud variable on second thing (cydesp32)BRILLIANT I LOVE IT . Goals. To use variables in Arduino Cloud that are not of a basic type, you can set them up like you would do with any other variable. Start using Arduino Cloud apps right away, or check the Resources tab for help getting started. Feb 13, 2023 · LCD display to show cloud variables. Apr 12, 2022 · I am using an ESP32-Board (NodeMCU ESP32 from joy-it) and want to read a voltage value. Let’s say you’re monitoring Wi-Fi signal strength at the bottom of the garden, where a project (weather station Mar 6, 2022 · Variables not updating from Android with IoT. For example, using the WiFiConnectionHandler, we use the SSID, PASS parameters which are defined in the arduino_secrets. As long as your board maintains a connection to the Arduino Cloud, the variables will be updated. Types of variables and list of available ones. A Nov 21, 2023 · The "N/A" value shown in the dashboard widget in your screenshot indicates that Arduino Cloud never received any information from the board for the pHVal variable. zip file. With cloud storage you can store numbers, strings, arrays and listen for changes in real time on your data stored in the cloud. In addition, any variable created with a read/write permission will also generate a callback function that executes whenever the variable's value changes. Configure a LoRaWAN® device in the Arduino Cloud. Communication. 23, you would do this: averageTurbidityVoltage = 1. Jun 18, 2024 · Hi, I'm using Arduino IoT Cloud to record a few variables from an Arduino Nano 33 IoT in my application. This widget uses a variable called "CloudLocation" for work, and has to be updated like this <Variable_name> = {<Latitude_Double_format>, <Longitude_Double After running the script, you should see in the terminal that we first attempt to connect to the Arduino Cloud. When I change the value, I see Jan 9, 2022 · Software IoT Cloud. You should now see this value updated in the Thing interface in the Arduino Cloud. I am doing my first steps with a LoRa device with the IoT cloud. I need them to all report at the same frequency so that when I download each cloud variable and paste The Arduino Cloud is a online platform that makes it easy for you to create, deploy and monitor IoT projects. Oct 2, 2021 · Hi there, I'm trying to set up a project that gets the location of the MKR GSM 1400 by means of the location service "CellLocate", and use the information for projecting the latitude and longitude into the Arduino IoT Cloud widget "Map". So at 3:00 the value for 12:30 will be displayed, then at 3:10 the value for 12:40 will be displayed, etc. Apr 13, 2022 · Once you update the firmware and re-upload the sketch, you should see that your Arduino board has now successfully established a connection to the Arduino IoT cloud. lastTime = millis(); //Update the timer. true,false,true,true An Arduino Cloud Account; An Arduino Cloud-compatible board (optional). Setup Hardware & Sketch. /*Arduino IoT Cloud Variables description The following Sep 9, 2020 · Arduino IoT Cloud Properties description. However, when I create a cloud sketch that includes You can link the gauge widget to lots of different inputs and variables in Arduino Cloud (https://cloud. I'm trying to modify this to log the data to the IoT cloud, however I've been unable to locate in the Parameters. I have the project up and running locally and the data from the sensors get stored in an array, as it seems to be the logical way to do it. Displaying the Variable in a Custom Dashboard. May 9, 2024 · The "Integer Number" Arduino Cloud IoT Variable is a signed 32-bit type on all the boards that are supported for use as IoT Devices. Add to cart. Triggers. Thing 2 boolean seems to have mind of it own when switching to a false state. <style>. 4-Configure the Network Settings. We want to work on our coding concurrently so we don’t Sep 7, 2023 · I'm working on developing a project where I am going to be logging from several identical sensors, in total it will be about 10 variables (all float). 3. The board and cloud are out of sync. 99 /paid monthly. You can also go directly to the Arduino IoT Cloud. APIs. Updating the Dashboard Finally, we should put a widget on our dashboard to interact with the button_state variable. html?id=GTM-NK2TW8L" height="0" width="0" style="display: none; visibility: hidden" aria-hidden="true"></iframe> Dec 18, 2023 · In the Arduino board version of this tutorial, Arduino Cloud: Connecting Your Arduino To The Outside World, the Arduino Cloud created a sketch template for us to use with the Arduino Cloud connection and cloud variables already configured for us. Mount the shield. */. Arduino Forum Build a script that reads your variables' data and provides custom analytics ; Resources. First part of my mission is to connect multiple temperature sensors on the complete heating system. This variable can be controlled in real time using a graphical widget that you can place on an Arduino Cloud dashboard. Jan 5, 2024 · In this tutorial we are going to use Arduino Cloud, if you are new to Arduino Cloud, we advise to first take a look at this introductory project, which will give you an overview and guide you through the process of setting up your supported board, IoT Cloud things and properties and get you onboard. kl yk cb li bo nn do wc ee ct