Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Arduino4D_Robot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CLEAR
Arduino4D_Robot
Commits
1eeef3ae
Commit
1eeef3ae
authored
4 years ago
by
Pierre Korysko
Browse files
Options
Downloads
Patches
Plain Diff
Changed the Pins number
parent
a110a417
No related branches found
No related tags found
1 merge request
!2
Config pins fixes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
4DrobotServer/4DrobotServer_config.h
+13
-10
13 additions, 10 deletions
4DrobotServer/4DrobotServer_config.h
with
13 additions
and
10 deletions
4DrobotServer/4DrobotServer_config.h
+
13
−
10
View file @
1eeef3ae
...
...
@@ -14,9 +14,9 @@
// ***** HARDWARE SIMULATION (FOR DEV) *********
//Uncomment to simulate hardware
#define DUMMY_TEMP
#define DUMMY_SERVO
#define DUMMY_STEPPER
//
#define DUMMY_TEMP
//
#define DUMMY_SERVO
//
#define DUMMY_STEPPER
// ***** NETWORK CONFIG ************************
...
...
@@ -27,7 +27,10 @@
//byte mac[] = {0xA8, 0x61, 0x0A, 0xAE, 0x84, 0xEE};
// MAC address for Kyrre's test board
byte
mac
[]
=
{
0xA8
,
0x61
,
0x0A
,
0xAE
,
0x72
,
0xF7
};
//byte mac[] = {0xA8, 0x61, 0x0A, 0xAE, 0x72, 0xF7};
// MAC address for the Arduino on the 4DRobot
byte
mac
[]
=
{
0xA8
,
0x61
,
0x0A
,
0xAE
,
0x84
,
0xEF
};
//To use DHCP or not to use DHCP, that's the question.
// Comment out to use static IP configuration
...
...
@@ -53,14 +56,14 @@ const size_t output_bufflen = 2048;
// ***** TEMPERATURE SENSOR CONFIG *************
const
uint8_t
temp_oneWire_pin
=
51
;
// <-- Conflict with ETHERNET!
const
uint8_t
temp_oneWire_pin
=
49
;
const
size_t
temp_numSensors
=
1
;
const
unsigned
long
temp_update_interval
=
1000
;
//[ms]
// ***** SAMPLE GRABBER SERVO CONFIG ***********
// TODO: Tune stepWait, positions
const
int
grabber_servo_pin
=
9
;
const
int
grabber_servo_pin
=
47
;
const
int
grabber_closed
=
86
;
//[deg]
const
int
grabber_open
=
130
;
//[deg]
const
int
grabber_min
=
0
;
//[deg]
...
...
@@ -78,8 +81,8 @@ const size_t stepper_numAxis = 3;
const
char
stepper_axnames
[]
=
{
'X'
,
'Y'
,
'Z'
};
const
uint8_t
stepper_dir_pin
[]
=
{
32
,
36
,
40
};
//Stepper direction pins (HIGH=positive, LOW=negative)
const
uint8_t
stepper_step_pin
[]
=
{
33
,
37
,
4
1
};
//Stepper pulse-to-step pins (pulse HIGH, otherwise low)
const
uint8_t
stepper_dir_pin
[]
=
{
6
,
9
,
12
};
//Stepper direction pins (HIGH=positive, LOW=negative)
const
uint8_t
stepper_step_pin
[]
=
{
5
,
8
,
1
1
};
//Stepper pulse-to-step pins (pulse HIGH, otherwise low)
//Define level for stepper_dir_pin[] to count steps in forward direction
// Used to define the Z axis as zero when on top, so that we can zero it first on top switch,
...
...
@@ -90,8 +93,8 @@ const bool stepper_backward[] = {HIGH,LOW,LOW};
//TODO: PIN4 ALSO IN USE BY ETHERNET
//TODO: Verify reproducibility of zeroing, we may need debounce?
const
uint8_t
stepper_switchMAX_pin
[]
=
{
2
,
5
,
7
};
//positive steps limit switch pins
const
uint8_t
stepper_switchMIN_pin
[]
=
{
3
,
4
,
6
};
//negative steps limit switch pins
const
uint8_t
stepper_switchMAX_pin
[]
=
{
33
,
37
,
41
};
//positive steps limit switch pins
const
uint8_t
stepper_switchMIN_pin
[]
=
{
3
2
,
36
,
40
};
//negative steps limit switch pins
//TODO: Verify active/inactive -> HIGH/LOW
// Note: Needs pulldown/pullup resistor
// Note: Probably safest to define on-limit = open, so if a switch fails the axis is safe (but stopped)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment