<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.flowcode.co.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Car_Seat</id>
	<title>Car Seat - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.flowcode.co.uk/wiki/index.php?action=history&amp;feed=atom&amp;title=Car_Seat"/>
	<link rel="alternate" type="text/html" href="https://www.flowcode.co.uk/wiki/index.php?title=Car_Seat&amp;action=history"/>
	<updated>2026-04-13T02:51:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://www.flowcode.co.uk/wiki/index.php?title=Car_Seat&amp;diff=20788&amp;oldid=prev</id>
		<title>BenR at 13:50, 20 April 2018</title>
		<link rel="alternate" type="text/html" href="https://www.flowcode.co.uk/wiki/index.php?title=Car_Seat&amp;diff=20788&amp;oldid=prev"/>
		<updated>2018-04-20T13:50:29Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 13:50, 20 April 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l14&quot; &gt;Line 14:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 14:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Start a new flowchart and select ‘No chip’ as the target device.  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Start a new flowchart and select ‘No chip’ as the target device.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Add the Car Seat component to the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;System &lt;/del&gt;Panel, found in the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Mechatronics &lt;/del&gt;category. Note; this is a large 3D model, and may take a &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;short time &lt;/del&gt;to load.  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Add the Car Seat component to the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;3D &lt;/ins&gt;Panel, found in the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;'Simulation -&amp;gt; Scenarios' &lt;/ins&gt;category. Note; this is a large 3D model, and may take a &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;few seconds &lt;/ins&gt;to load.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Add two simulation switches to the &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;dashboard &lt;/del&gt;panel from the ‘Simulation’ component category and configure them as momentary.  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Add two simulation switches to the &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;2D &lt;/ins&gt;panel from the ‘Simulation’ component category and configure them as momentary.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Create two variables of type &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;‘byte’&lt;/del&gt;. These are used to determine if the switches are pressed, so name them something meaningful.  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Create two variables of type &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;‘Bool’&lt;/ins&gt;. These are used to determine if the switches are pressed, so name them something meaningful.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Create a flowchart to move the car seat base forwards and backwards when the appropriate button is pressed.  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Create a flowchart to move the car seat base forwards and backwards when the appropriate button is pressed.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* You will need to use the ‘Motor1’ macro.  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* You will need to use the ‘Motor1’ macro.  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>BenR</name></author>
		
	</entry>
	<entry>
		<id>https://www.flowcode.co.uk/wiki/index.php?title=Car_Seat&amp;diff=20777&amp;oldid=prev</id>
		<title>BenR: Created page with &quot;Power/ electric car seats allow users to move the seat position via switches and motors, rather than manual adjustment. Their complexity has increased over time, with modern-d...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.flowcode.co.uk/wiki/index.php?title=Car_Seat&amp;diff=20777&amp;oldid=prev"/>
		<updated>2018-04-20T13:26:16Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Power/ electric car seats allow users to move the seat position via switches and motors, rather than manual adjustment. Their complexity has increased over time, with modern-d...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Power/ electric car seats allow users to move the seat position via switches and motors, rather than manual adjustment. Their complexity has increased over time, with modern-day car seats even providing memory positions based on the specific key used to enter the vehicle, to allow seating positions to be automatically adjusted for multiple people. &lt;br /&gt;
&lt;br /&gt;
Power/ electric car seats are fairly simple in theory; motors and mechanical worm gears are used to convert rotational movement to linear. A series of switches are used to move the seat, and sensors are used to determine the position of the seat.  &lt;br /&gt;
&lt;br /&gt;
[[File:CS1.jpg]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Exercise 1==&lt;br /&gt;
&lt;br /&gt;
Power car seats utilise motors and switches to operate. In this exercise students will program the forward/ backward movement of a car seat with a single motor and two momentary switches.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Tasks===&lt;br /&gt;
&lt;br /&gt;
* Start a new flowchart and select ‘No chip’ as the target device. &lt;br /&gt;
* Add the Car Seat component to the System Panel, found in the Mechatronics category. Note; this is a large 3D model, and may take a short time to load. &lt;br /&gt;
* Add two simulation switches to the dashboard panel from the ‘Simulation’ component category and configure them as momentary. &lt;br /&gt;
* Create two variables of type ‘byte’. These are used to determine if the switches are pressed, so name them something meaningful. &lt;br /&gt;
* Create a flowchart to move the car seat base forwards and backwards when the appropriate button is pressed. &lt;br /&gt;
* You will need to use the ‘Motor1’ macro. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Note===&lt;br /&gt;
&lt;br /&gt;
The simulation has been designed to stop the car seat base from extending past the end stops. In the next exercise you will implement the current reading to monitor the seat position and stop the motor movement programmatically. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Working Example===&lt;br /&gt;
&lt;br /&gt;
Below you will see a working example to move the car seat backwards and forwards. &lt;br /&gt;
&lt;br /&gt;
{{Fcfile|CarSeatWorksheet1.fcfx|Car Seat - Worksheet 1}}&lt;br /&gt;
&lt;br /&gt;
[[File:CS2.jpg]]&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
===What to do next===&lt;br /&gt;
&lt;br /&gt;
Modify the program as appropriate to include all 3 axes of movement. You will need 6 switches, and 6 variables. You should end up with a program that allows the user to move the seat backwards and forwards, as well as up and down, at the front and rear. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Exercise 2==&lt;br /&gt;
&lt;br /&gt;
For manually controlled power car seats, reaching the mechanical end stops will cause the motor to go into stall conditions, where a large electrical current is consumed. When this occurs the microcontroller program should sense the current spike and stop power to the motor to avoid the motor's coils from burning out.  &lt;br /&gt;
&lt;br /&gt;
In exercise 2, you should build on what you have done previously and implement programmatic control over the motors to avoid them burning out.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Tasks===&lt;br /&gt;
&lt;br /&gt;
* Open the flowchart from Ex1 and continue working from there. &lt;br /&gt;
* Create any new variables you may need to allow you save the current measurements for each motor. &lt;br /&gt;
* Create a flowchart that independently allows movement of the three motors. &lt;br /&gt;
* Create a variable of type ‘byte’, used to store the value of electrical current and determine if the motor has reached the end stops &lt;br /&gt;
** The motor will consume 0A when not in use&lt;br /&gt;
** 3A in normal conditions&lt;br /&gt;
** 20A in stalled condition when the seat hits the end stops &lt;br /&gt;
* Ensure your program stops the motors from moving when the end stops have been reached. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Exercise 3==&lt;br /&gt;
&lt;br /&gt;
Previously, we have been only able to determine whether the car seat is at its end stop limits by measuring the stall current of the motor. In exercise 3 you will now look at utilising an encoder to determine the actual position of the car seat. This is essential in creating electric seats with memory functionality. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Tasks===&lt;br /&gt;
&lt;br /&gt;
* Continue from the previous exercise, but delete any old code you that is no longer necessary. &lt;br /&gt;
* Create new variables to allow you save the encoder values. Note, encoder values could be larger than 255, so use an ‘Unsigned Int’ variable type. &lt;br /&gt;
* Use the ‘Encoder’ macros to read the position of the appropriate axes. &lt;br /&gt;
* At this point you should also add an LCD screen to the dashboard panel, for testing and debug, and configure it to display the values read from the encoder(s). &lt;br /&gt;
* Create a program that allows you to determine the minimum and maximum encoder values for each axis of movement and display them on the screen. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Exercise 4==&lt;br /&gt;
&lt;br /&gt;
Previously, we implemented encoders to determine the absolute position of the car seat. This is the first step in being able to create a memory function. &lt;br /&gt;
&lt;br /&gt;
In exercise 4 you will now look at creating a flowchart program that allows you to move the seat manually to a desired position, save that position, and then load from memory when required. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Tasks===&lt;br /&gt;
&lt;br /&gt;
* Continue from Ex3 &lt;br /&gt;
* Add additional switches and variables for ‘Save’ and ‘Load’ functionality. &lt;br /&gt;
* Create a program that; &lt;br /&gt;
* When the save switch is pressed remembers the encoder position for all motors (use the ‘save’ macro) &lt;br /&gt;
* When the load switch is pressed moved from its current position to the saved position (use the ‘load’ macro) &lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
===What to do next===&lt;br /&gt;
&lt;br /&gt;
Upgrade the system so that you can have multiple save slots. Note, the Save and Load macros offer two save slots (A and B). You will need to create new variables to allow the saving of multiple positions.&lt;/div&gt;</summary>
		<author><name>BenR</name></author>
		
	</entry>
</feed>